| Technical Specification | ||||
| Filesystem library(filesystem TS) | ||||
| Library fundamentals(library fundamentals TS) | ||||
| Library fundamentals 2(library fundamentals TS v2) | ||||
| Library fundamentals 3(library fundamentals TS v3) | ||||
| Extensions for parallelism(parallelism TS) | ||||
| Extensions for parallelism 2(parallelism TS v2) | ||||
| Extensions for concurrency(concurrency TS) | ||||
| Extensions for concurrency 2(concurrency TS v2) | ||||
| Concepts(concepts TS) | ||||
| Ranges(ranges TS) | ||||
| Reflection(reflection TS) | ||||
| Mathematical special functions(special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Convenience aliases for containers usingpolymorphic_allocator | ||||
| Memory resource classes | ||||
| Global memory resources | ||||
set_default_resource | ||||
| Type-erased allocator support for existing classes | ||||
Defined in header <experimental/memory_resource> | ||
memory_resource* set_default_resource( memory_resource* r)noexcept; | (library fundamentals TS) | |
Ifr is not null, sets the default memory resource pointer tor; otherwise, sets the default memory resource pointer tonew_delete_resource().
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 ofnew_delete_resource().
This function is thread-safe. Every call toset_default_resourcesynchronizes with (seestd::memory_order) the subsequentset_default_resource andget_default_resource calls.
Returns the previous value of the default memory resource pointer.
gets the defaultmemory_resource(function)[edit] | |
returns a static program-widememory_resource that uses the globaloperator new andoperator delete to allocate and deallocate memory(function)[edit] |