asio C++ library

PrevUpHomeNext

wrap

Associate an object of type T with an executor of type Executor.

template<
    typename Executor,
    typename T>
executor_wrapper< typename decay< T >::type, Executor > wrap(
    const Executor & ex,
    T && t,
    typename enable_if< is_executor< Executor >::value >::type *  = 0);
  » more...

template<
    typename ExecutionContext,
    typename T>
executor_wrapper< typename decay< T >::type, typename ExecutionContext::executor_type > wrap(
    ExecutionContext & ctx,
    T && t,
    typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type *  = 0);
  » more...
Requirements

Header: asio/wrap.hpp

Convenience header: asio.hpp


PrevUpHomeNext