std::pmr::n...ete_resource(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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 β€” also std::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 new to allocate memory;
  • its deallocate() function uses ::operator delete to deallocate memory;
  • for any memory_resource r, 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