|
CppServer 1.0.5.0
C++ Server Library
|
Asio allocate handler wrapper. More...
#include <memory.h>
Public Types | |
| typedef HandlerAllocator< THandler > | allocator_type |
| Allocator type. | |
Public Member Functions | |
| AllocateHandler (HandlerStorage &storage, THandler handler) noexcept | |
| Initialize allocate handler wrapper with a given memory storage and handler. | |
| 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. | |
| template<typename ... Args> | |
| void | operator() (Args &&... args) |
| Wrap the handler. | |
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 |