|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <memory_resource> | ||
std::pmr::memory_resource* get_default_resource()noexcept; | (since C++17) | |
Gets the default memory resource pointer.
Thedefault memory resource pointer is used by certain facilities when an explicit memory resource is not supplied. The initial default memory resource pointer is the return value ofstd::pmr::new_delete_resource.
This function is thread-safe. Previous call tostd::pmr::set_default_resourcesynchronizes with (seestd::memory_order) the subsequentstd::pmr::get_default_resource calls.
Returns the value of the default memory resource pointer.
(C++17) | sets the defaultstd::pmr::memory_resource (function)[edit] |
(C++17) | returns a static program-widestd::pmr::memory_resource that uses the globaloperator new andoperator delete to allocate and deallocate memory (function)[edit] |