std::experi...ry_resource(3)
β¨ NAME β¨
okay so bestie, welcome to the std::experi...ry_resource(3) page from the C++ Standard Libary manual β yes, thatβs the manual name, spelled exactly like that, iykyk π
Weβre talking about:
std::experimental::pmr::null_memory_resource-std::experimental::pmr::null_memory_resource
(The NAME is literally the same thing twice. Itβs giving βI said what I saidβ energy, and honestly? Iconic.)
πΈ Synopsis πΈ
Defined in header <experimental/memory_resource>
memory_resource* null_memory_resource() noexcept; (library fundamentals TS)
Returns a pointer to a memory_resource that doesnβt perform any allocation. No allocation, no stress, just vibes β¨
π 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 always throwsstd::bad_alloc; - its
deallocate()function has no effect; - for any
memory_resourcer,p->is_equal(r)returns&r == p.
The same value is returned every time this function is called. Same pointer, every single time, fr fr π«Ά
π Category π
- Noindexed pages
thatβs the whole page, bestie π β cute little sign-off: this oneβs hanging out at http://cppreference.com with the 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