Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

make_strand (2 of 2 overloads)

Create a strand object for an execution context.

    typename ExecutionContext>
strand< typename ExecutionContext::executor_type > make_strand(
    ExecutionContext & ctx,
    typename constraint< is_convertible< ExecutionContext &, execution_context & >::value >::type  = 0);


An execution context, from which an executor will be obtained.

Return Value

A strand constructed with the execution context's executor, obtained by performing ctx.get_executor().