asio C++ library

PrevUpHomeNext

any_io_executor

Polymorphic executor type for use with I/O objects.

typedef execution::any_executor<...> any_io_executor;
Member Functions

Name

Description

any_executor

Default constructor.

Construct in an empty state. Equivalent effects to default constructor.

Copy constructor.

Move constructor.

Construct to point to the same target as another any_executor.

Construct a polymorphic wrapper for the specified executor.

context

Obtain the underlying execution context.

execute

Execute the function on the target executor.

operator bool

Determine whether the wrapper has a target executor.

operator=

Assignment operator.

Move assignment operator.

Assignment operator that sets the polymorphic wrapper to the empty state.

Assignment operator to create a polymorphic wrapper for the specified executor.

prefer

Obtain a polymorphic wrapper with the specified property.

query

Obtain the value associated with the specified property.

require

Obtain a polymorphic wrapper with the specified property.

swap

Swap targets with another polymorphic wrapper.

target

Get a pointer to the target executor.

target_type

Get the type of the target executor.

~any_executor

Destructor.

Related Functions

Name

Description

operator!=

Inequality operator.

operator==

Equality operator.

The any_io_executor type is a polymorphic executor that supports the set of properties required by I/O objects. It is defined as the execution::any_executor class template parameterised as follows:

execution::any_executor<
  execution::context_as_t<execution_context&>,
  execution::blocking_t::never_t,
  execution::prefer_only<execution::blocking_t::possibly_t>,
  execution::prefer_only<execution::outstanding_work_t::tracked_t>,
  execution::prefer_only<execution::outstanding_work_t::untracked_t>,
  execution::prefer_only<execution::relationship_t::fork_t>,
  execution::prefer_only<execution::relationship_t::continuation_t>
>
Requirements

Header: asio/any_io_executor.hpp

Convenience header: asio.hpp


PrevUpHomeNext