std::pmr::monotonic_buffer_resource
std::pmr::monotonic_buffer_resource
Defined in header <memory_resource> | ||
---|---|---|
class monotonic_buffer_resource : public std::pmr::memory_resource; | (since C++17) |
The class std::pmr::monotonic_buffer_resource
is a special-purpose memory resource class that releases the allocated memory only when the resource is destroyed. It is intended for very fast memory allocations in situations where memory is used to build up a few objects and then is released all at once.
monotonic_buffer_resource
can be constructed with an initial buf