std::experi...ry_resource(3)

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

✨ 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 throws std::bad_alloc;
  • its deallocate() function has no effect;
  • for any memory_resource r, 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