| Home | Libraries | People | FAQ | More

###### test::basic_stream::basic_stream (3 of 7 overloads)

Construct a stream.

###### Synopsis

    template<
        class ExecutionContext,
        class = typename std::enable_if<            std::is_convertible<ExecutionContext&, net::execution_context&>::value>::type>
    basic_stream(
        ExecutionContext& context);

###### Description

The stream will be created in a disconnected state.

###### Parameters

Name | Description
--- | ---
`context` | The `io_context` object that the stream will use to dispatch handlers for any asynchronous operations.