Defined in header <memory_resource> | ||
---|---|---|
class unsynchronized_pool_resource : public std::pmr::memory_resource; | (since C++17) |
The class std::pmr::unsynchronized_pool_resource
is a general-purpose memory resource class with the following properties:
deallocate
has not been called for some of the allocated blocks. do_allocate
are dispatched to the pool serving the smallest blocks accommodating the requested size. std::pmr::pool_options
struct to its constructor. unsynchronized_pool_resource
is not thread-safe, and cannot be accessed from multiple threads simultaneously; use synchronized_pool_resource
if access from multiple threads is required.
constructs an unsynchronized_pool_resource (public member function) |
|
[virtual] | destroys an unsynchronized_pool_resource , releasing all allocated memory (virtual public member function) |
operator=
[deleted] | copy assignment operator is deleted. unsynchronized_pool_resource is not copy assignable (public member function) |
Public member functions |
|
release all allocated memory (public member function) |
|
returns a pointer to the upstream memory resource (public member function) |
|
returns the options that control the pooling behavior of this resource (public member function) |
|
Protected member functions |
|
[virtual] | allocate memory (virtual protected member function) |
[virtual] | return memory to the pool (virtual protected member function) |
[virtual] | compare for equality with another std::pmr::memory_resource (virtual protected member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/unsynchronized_pool_resource