std::experi...t_allocator(3)

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

std::experimental::function::get_allocator 🌸

okay bestie, we’re in the C++ Standard Libary manual (yes, that’s the manual name, and yes, we’re gonna be normal about it πŸ’…) and this page is all about std::experimental::function::get_allocator. no cap, it’s a tiny one.

πŸŽ€ NAME πŸŽ€

std::experimental::function::get_allocator β€” std::experimental::function::get_allocator

✨ Synopsis ✨

          std::pmr::polymorphic_allocator<> get_allocator() const     (library
       fundamentals TS
          noexcept;                                                   v3)

So yeah: std::pmr::polymorphic_allocator<> get_allocator() const β€” it’s noexcept, and it’s tagged library fundamentals TS v3. πŸ’–

🫢 Parameters 🫢

(none) β€” literally no parameters, bestie. not a single one.

πŸ’« Return value πŸ’«

Returns the std::pmr::polymorphic_allocator<> stored at the construction of function object. If no allocator was explicitly specified, the stored allocator is equal to the source allocator in move construction, or is default-constructed otherwise.

πŸ‘€ See also πŸ‘€

  • get_memory_resource β€” retrieves a pointer to the memory resource (removed in library fundamentals TS v3) used by this object to allocate memory (public member function)

mwah πŸ’‹ huge thanks to http://cppreference.com, dated 2024.06.10, for the std::experi...t_allocator(3) page β€” bye bestie, go slay some allocators! βœ¨πŸ¦‹

πŸ“¦ where this page comes from