CppServer
1.0.4.0
C++ Server Library
|
Asio handler allocator. More...
#include <memory.h>
Public Types | |
typedef T | value_type |
Element type. More... | |
typedef T * | pointer |
Pointer to element. More... | |
typedef T & | reference |
Reference to element. More... | |
typedef const T * | const_pointer |
Pointer to constant element. More... | |
typedef const T & | const_reference |
Reference to constant element. More... | |
typedef size_t | size_type |
Quantities of elements. More... | |
typedef ptrdiff_t | difference_type |
Difference between two pointers. More... | |
Public Member Functions | |
HandlerAllocator (HandlerStorage &storage) noexcept | |
Initialize allocator with a given memory storage. More... | |
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. More... | |
void | deallocate (pointer ptr, size_type num) |
Release a block of storage previously allocated. More... | |
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.
typedef const T* CppServer::Asio::HandlerAllocator< T >::const_pointer |
typedef const T& CppServer::Asio::HandlerAllocator< T >::const_reference |
typedef ptrdiff_t CppServer::Asio::HandlerAllocator< T >::difference_type |
typedef T* CppServer::Asio::HandlerAllocator< T >::pointer |
typedef T& CppServer::Asio::HandlerAllocator< T >::reference |
typedef size_t CppServer::Asio::HandlerAllocator< T >::size_type |
typedef T CppServer::Asio::HandlerAllocator< T >::value_type |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |