|
CppServer 1.0.5.0
C++ Server Library
|
Asio handler allocator. More...
#include <memory.h>
Public Types | |
| typedef T | value_type |
| Element type. | |
| typedef T * | pointer |
| Pointer to element. | |
| typedef T & | reference |
| Reference to element. | |
| typedef const T * | const_pointer |
| Pointer to constant element. | |
| typedef const T & | const_reference |
| Reference to constant element. | |
| typedef size_t | size_type |
| Quantities of elements. | |
| typedef ptrdiff_t | difference_type |
| Difference between two pointers. | |
Public Member Functions | |
| HandlerAllocator (HandlerStorage &storage) noexcept | |
| Initialize allocator with a given memory storage. | |
| template<typename U > | |
| HandlerAllocator (const HandlerAllocator< U > &alloc) noexcept | |
| HandlerAllocator (const HandlerAllocator &alloc) noexcept | |
| HandlerAllocator (HandlerAllocator &&) noexcept=default | |
| ~HandlerAllocator () noexcept=default | |
| template<typename U > | |
| HandlerAllocator & | operator= (const HandlerAllocator< U > &alloc) noexcept |
| HandlerAllocator & | operator= (const HandlerAllocator &alloc) noexcept |
| HandlerAllocator & | operator= (HandlerAllocator &&) noexcept=default |
| pointer | allocate (size_type num, const void *hint=0) |
| Allocate a block of storage suitable to contain the given count of elements. | |
| void | deallocate (pointer ptr, size_type num) |
| Release a block of storage previously allocated. | |
Friends | |
| template<typename > | |
| class | HandlerAllocator |
Asio handler allocator.
The allocator to be associated with the handler objects. This allocator only needs to satisfy the C++11 minimal allocator requirements.
Not thread-safe.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |