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 develop branch, built from commit dcea408971.
PrevUpHomeNext
async_base::async_base (1 of 3 overloads)

Constructor.

Synopsis
template<
    class Handler>
async_base(
    Handler&& handler,
    Executor1 const& ex1,
    Allocator const& alloc = Allocator());
Description Parameters

Name

Description

handler

The final completion handler. The type of this object must meet the requirements of CompletionHandler. The implementation takes ownership of the handler by performing a decay-copy.

ex1

The executor associated with the implied I/O object target of the operation. The implementation shall maintain an executor work guard for the lifetime of the operation, or until the final completion handler is invoked, whichever is shorter.

alloc

The allocator to be associated with objects derived from this class. If Allocator is default-constructible, this parameter is optional and may be omitted.


PrevUpHomeNext