std::pmr::synchronized_pool_resource - cppreference.com (original) (raw)

std::pmr::synchronized_pool_resource

The class std::pmr::synchronized_pool_resource is a general-purpose memory resource class with the following properties:

synchronized_pool_resource may be accessed from multiple threads without external synchronization, and may have thread-specific pools to reduce synchronization costs. If the memory resource is only accessed from one thread, unsynchronized_pool_resource is more efficient.

[edit] Member functions

(constructor) constructs a synchronized_pool_resource (public member function) [edit]
(destructor)[virtual] destroys a synchronized_pool_resource, releasing all allocated memory (virtual public member function) [edit]
operator=[deleted] copy assignment operator is deleted. synchronized_pool_resource is not copy assignable (public member function) [edit]
Public member functions
release release all allocated memory (public member function) [edit]
upstream_resource returns a pointer to the upstream memory resource (public member function) [edit]
options returns the options that control the pooling behavior of this resource (public member function) [edit]
Protected member functions
do_allocate[virtual] allocate memory (virtual protected member function) [edit]
do_deallocate[virtual] return memory to the pool (virtual protected member function) [edit]
do_is_equal[virtual] compare for equality with another memory_resource (virtual protected member function) [edit]