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 a snapshot of the master branch, built from commit a8a4da0b3c.
PrevUpHomeNext

execution::any_executor

Polymorphic executor wrapper.

template<
    typename... SupportableProperties>
class any_executor
Member Functions

Name

Description

any_executor [constructor]

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]

Destructor.

Related Functions

Name

Description

operator!=

Inequality operator.

operator==

Equality operator.

Requirements

Header: boost/asio/execution/any_executor.hpp

Convenience header: boost/asio/execution.hpp


PrevUpHomeNext