Boost C++ 库

...世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

make_strand - Boost C++ 函数库
PrevUpHomeNext

函数 make_strand 为 executor 或 execution context 创建一个 strand 对象。

为 executor 创建一个 strand 对象。

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

为 execution context 创建一个 strand 对象。

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

头文件:boost/asio/strand.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext