Boost C++ Libraries

...one 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.
PrevUpHomeNext

make_strand

The make_strand function creates a strand object for an executor or execution context.

Create a strand object for an executor.

template<
    typename Executor>
strand< Executor > make_strand(
    const Executor & ex,
    constraint_t< is_executor< Executor >::value||execution::is_executor< Executor >::value >  = 0);
  » more...

Create a strand object for an execution context.

template<
    typename ExecutionContext>
strand< typename ExecutionContext::executor_type > make_strand(
    ExecutionContext & ctx,
    constraint_t< is_convertible< ExecutionContext &, execution_context & >::value >  = 0);
  » more...
Requirements

Header: boost/asio/strand.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext