|
Asio Extensions
Additional functionality built on top of (Boost.)Asio
|
Helper trait to obtain the allocator associated with a handler. More...
#include <asioext/associated_allocator.hpp>
Public Types | |
| typedef implementation_defined | type |
| The Handler's ProtoAllocator. More... | |
Static Public Member Functions | |
| static type | get (Handler &handler) noexcept |
| Get a ProtoAllocator for the given handler. More... | |
Helper trait to obtain the allocator associated with a handler.
Retrieves an Allocator that is used to allocate memory tied to the handler's asynchronous operation.
Supports the associated_allocator trait introduced by the Networking TS / Asio 1.11.0+, as well as Asio's memory allocation hooks (which this trait will wrap in a hook_allocator)
| typedef implementation_defined asioext::associated_allocator< Handler >::type |
The Handler's ProtoAllocator.
A type meeting ProtoAllocator requirements that if rebound can be used to allocate memory using the handler's allocator.
|
inlinestaticnoexcept |
Get a ProtoAllocator for the given handler.