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

PrevUpHomeNext

experimental::use_promise_t

template<
    typename Allocator = std::allocator<void>>
struct use_promise_t
Types

Name

Description

allocator_type

The allocator type. The allocator is used when constructing the promise object for a given asynchronous operation.

executor_with_default

Adapts an executor to add the use_promise_t completion token as the default.

Member Functions

Name

Description

as_default_on [static]

Function helper to adapt an I/O object to use use_promise_t as its default completion token type.

get_allocator

Obtain allocator.

rebind

Specify an alternate allocator.

use_promise_t [constructor]

Construct using default-constructed allocator.

Construct using specified allocator.

Requirements

Header: boost/asio/experimental/use_promise.hpp

Convenience header: None


PrevUpHomeNext