15 if (!_in_use && (size <
sizeof(_storage)))
22 return ::operator
new(size);
35 ::operator
delete(ptr);
38 template <
typename THandler>
Asio allocate handler wrapper.
void deallocate(void *ptr)
Deallocate memory buffer.
void * allocate(size_t size)
Allocate memory buffer.
AllocateHandler< THandler > make_alloc_handler(HandlerStorage &storage, THandler handler)
Helper function to wrap a handler object to add custom allocation.
C++ Server project definitions.