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

Returns a pointer to a memory_resource that uses the global operator new and operator delete to allocate memory.

[edit] Return value

Returns a pointer p to a static storage duration object of a type derived from std::pmr::memory_resource, with the following properties:

The same value is returned every time this function is called.