|
Asio Extensions
Additional functionality built on top of (Boost.)Asio
|
Allocator that uses a handler's memory allocation hooks. More...
#include <asioext/associated_allocator.hpp>
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| hook_allocator (Handler &h) noexcept | |
| template<typename U > | |
| hook_allocator (const hook_allocator< U, Handler > &a) noexcept | |
| T * | allocate (std::size_t n) |
| void | deallocate (T *p, std::size_t n) |
Friends | |
| template<class U , typename Handler2 > | |
| class | hook_allocator |
| template<class U > | |
| bool | operator== (const hook_allocator &, const hook_allocator< U, Handler > &) noexcept |
| template<class U > | |
| bool | operator!= (const hook_allocator &, const hook_allocator< U, Handler > &) noexcept |
Allocator that uses a handler's memory allocation hooks.
Asio Handlers (before Asio 1.11.0+) use two hooks to allow memory allocation to be customized:
This stateless allocator uses these hooks to allocate/free memory.
| typedef T asioext::hook_allocator< T, Handler >::value_type |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |