std::pmr::n...ete_resource(3)
okay so this is std::pmr::n...ete_resource(3), straight out of the C++ Standard Libary manual β and yes, the title is truncated like that, we're keeping the chaos πβ¨
π NAME π
std::pmr::new_delete_resourceβ alsostd::pmr::new_delete_resource(it's giving "I contain multitudes" π)
β¨ Synopsis β¨
Defined in header <memory_resource>:
std::pmr::memory_resource* new_delete_resource() noexcept; (since C++17)
Returns a pointer to a memory_resource that uses the global operator new and operator delete to allocate memory. no cap, that's the whole vibe π«Ά
π Return value π
Returns a pointer p to a static storage duration object of a type derived from std::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_resourcer,p->is_equal(r)returns&r == p.
The same value is returned every time this function is called. literally every single time, bestie β consistency is main character energy π
mwah π this page was served by http://cppreference.com on 2024.06.10, and yes the footer still says std::pmr::n...ete_resource(3) β keeping the truncated-title legacy alive π«ΆπΈ
π¦ 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