...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Allocate a temporary object to hold stable asynchronous operation state.
Defined in header <boost/beast/core/async_base.hpp>
template< class State, class Handler, class Executor1, class Allocator, class... Args> State& allocate_stable( stable_async_base< Handler, Executor1, Allocator >& base, Args&&... args);
The object will be destroyed just before the completion handler is invoked, or when the base is destroyed.
Type |
Description |
---|---|
|
The type of object to allocate. |
Name |
Description |
---|---|
|
The helper to allocate from. |
|
An optional list of parameters to forward to the constructor of the object being allocated. |