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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
stable_async_base::allocate_stable

Allocate a temporary object to hold operation state.

Synopsis

Defined in header <boost/beast/core/async_base.hpp>

template<
    class State,
    class Handler,
    class Executor1_,
    class Allocator_,
    class... Args>
friend State&
allocate_stable(
    stable_async_base< Handler_, Executor1_, Allocator_ >& base,
    Args&&... args);
Description

The object will be destroyed just before the completion handler is invoked, or when the operation base is destroyed.


PrevUpHomeNext