std::experi...ete_resource(3)
hey bestie, welcome to the std::experi...ete_resource(3) page from the C++ Standard Libary manual π β yes, that's the manual name, typo and all, and we're keeping it. This one is short but iconic, so let's get into it. π«Ά
π NAME π
std::experimental::pmr::new_delete_resource β that's the name, bestie. The original NAME section repeats it as std::experimental::pmr::new_delete_resource, so here's your double confirmation. π
β¨ Synopsis β¨
Okay so this is defined in the header <experimental/memory_resource>:
Defined in header <experimental/memory_resource>
memory_resource* new_delete_resource() noexcept; (library fundamentals TS)
It's giving library fundamentals TS energy, periodt. π₯
And what does it do? It returns a pointer to a memory_resource that uses the global operator new and operator delete to allocate memory. No cap.
π Return value π
Returns a pointer p to a static storage duration object of a type derived from std::experimental::pmr::memory_resource, with these properties:
- its
allocate()function uses::operator newto allocate memory; - its
deallocate()function uses::operator deleteto deallocate memory; - for any
memory_resource r,p->is_equal(r)returns&r == p.
And the same value is returned every time this function is called. Literally every single time. β
π Category π
- Noindexed pages
okay byeee π β source: http://cppreference.com, version/date: 2024.06.10. mwah π§π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms