asio C++ library

PrevUpHomeNext

executor_wrapper

A call wrapper type to associate an object of type T with an executor of type Executor.

template<
    typename T,
    typename Executor>
class executor_wrapper
Types

Name

Description

argument_type

The type of the function's argument.

executor_type

The type of the associated executor.

first_argument_type

The type of the function's first argument.

result_type

The return type if a function.

second_argument_type

The type of the function's second argument.

wrapped_type

The type of the wrapped object.

Member Functions

Name

Description

executor_wrapper

Construct an executor wrapper for the specified object.

Copy constructor.

Construct a copy, but specify a different executor.

Construct a copy of a different executor wrapper type.

Construct a copy of a different executor wrapper type, but specify a different executor.

Move constructor.

Move construct the wrapped object, but specify a different executor.

Move construct from a different executor wrapper type.

Move construct from a different executor wrapper type, but specify a different executor.

get_executor

Obtain the associated executor.

operator()

unwrap

Obtain a reference to the wrapped object.

~executor_wrapper

Destructor.

Requirements

Header: asio/wrap.hpp

Convenience header: asio.hpp


PrevUpHomeNext