CppServer
1.0.4.0
C++ Server Library
|
Asio allocate handler wrapper. More...
#include <memory.h>
Public Types | |
typedef HandlerAllocator< THandler > | allocator_type |
Allocator type. More... | |
Public Member Functions | |
AllocateHandler (HandlerStorage &storage, THandler handler) noexcept | |
Initialize allocate handler wrapper with a given memory storage and handler. More... | |
AllocateHandler (const AllocateHandler &) noexcept=default | |
AllocateHandler (AllocateHandler &&) noexcept=default | |
~AllocateHandler () noexcept=default | |
AllocateHandler & | operator= (const AllocateHandler &) noexcept=default |
AllocateHandler & | operator= (AllocateHandler &&) noexcept=default |
allocator_type | get_allocator () const noexcept |
Get the handler allocator. More... | |
template<typename ... Args> | |
void | operator() (Args &&... args) |
Wrap the handler. More... | |
Asio allocate handler wrapper.
Wrapper class template for handler objects to allow handler memory allocation to be customised. The allocator_type type and get_allocator() member function are used by the asynchronous operations to obtain the allocator. Calls to operator() are forwarded to the encapsulated handler.
Not thread-safe.
typedef HandlerAllocator<THandler> CppServer::Asio::AllocateHandler< THandler >::allocator_type |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inline |
|
defaultnoexcept |
|
defaultnoexcept |