A proto-allocator that caches memory blocks in thread-local storage for reuse.
template<> class recycling_allocator< void >
Name |
Description |
---|---|
Rebind the allocator to another value_type. |
|
No values are allocated by a proto-allocator. |
Name |
Description |
---|---|
Inequality operator. Always returns false. |
|
Equality operator. Always returns true. |
|
Default constructor. |
The uses a simple strategy where a limited number of small memory blocks
are cached in thread-local storage, if the current thread is running an
io_context
or is part of
a thread_pool
.
Header: asio/recycling_allocator.hpp
Convenience header: asio.hpp