ゴミ箱
|
#include <handler_alloc.hpp>
Classes | |
struct | rebind |
Public Types | |
using | value_type = T |
using | is_always_equal = std::true_type |
using | pointer = T * |
using | reference = T & |
using | const_pointer = T const * |
using | const_reference = T const & |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
Public Member Functions | |
handler_alloc ()=delete | |
handler_alloc (handler_alloc &&)=default | |
handler_alloc (handler_alloc const &)=default | |
handler_alloc & | operator= (handler_alloc &&)=default |
handler_alloc & | operator= (handler_alloc const &)=default |
handler_alloc (Handler &h) | |
template<class U > | |
handler_alloc (handler_alloc< U, Handler > const &other) | |
Copy constructor. More... | |
value_type * | allocate (size_type n) |
void | deallocate (value_type *p, size_type n) |
Friends | |
template<class U , class H > | |
class | handler_alloc |
template<class U > | |
bool | operator== (handler_alloc const &, handler_alloc< U, Handler > const &) |
template<class U > | |
bool | operator!= (handler_alloc const &lhs, handler_alloc< U, Handler > const &rhs) |
An allocator that uses handler customizations.
This allocator uses the handler customizations asio_handler_allocate
and asio_handler_deallocate
to manage memory. It meets the requirements of Allocator and can be used anywhere a std::allocator
is accepted.
T | The type of objects allocated by the allocator. |
Handler | The type of handler. |
using boost::beast::handler_alloc< T, Handler >::const_pointer = T const* |
using boost::beast::handler_alloc< T, Handler >::const_reference = T const& |
using boost::beast::handler_alloc< T, Handler >::difference_type = std::ptrdiff_t |
using boost::beast::handler_alloc< T, Handler >::is_always_equal = std::true_type |
using boost::beast::handler_alloc< T, Handler >::pointer = T* |
using boost::beast::handler_alloc< T, Handler >::reference = T& |
using boost::beast::handler_alloc< T, Handler >::size_type = std::size_t |
using boost::beast::handler_alloc< T, Handler >::value_type = T |
|
delete |
|
default |
|
default |
|
inlineexplicit |
Construct the allocator.
A reference of the handler is stored. The handler must remain valid for at least the lifetime of the allocator.
|
inline |
Copy constructor.
|
inline |
|
inline |
|
default |
|
default |
|
friend |
|
friend |