std::scoped...r_allocator(3)

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

πŸŽ€ NAME πŸŽ€

okay so this is the std::scoped_allocator_adaptor::inner_allocator page from the C++ Standard Libary manual, bestie. It’s literally std::scoped_allocator_adaptor::inner_allocator β€” same name, same energy, no cap. πŸ’…


✨ Synopsis ✨

Defined in header <scoped_allocator>
inner_allocator_type& inner_allocator() noexcept;             (1)
(since C++11)
const inner_allocator_type& inner_allocator() const noexcept; (2)
(since C++11)

So this one obtains a reference to the inner allocator used to declare this scoped_allocator_adaptor. 🫢

If sizeof...(InnerAllocs) == 0, that is, no inner allocators were declared, it returns *this. Otherwise it returns a reference to std::scoped_allocator_adaptor<InnerAllocs...>, that is, a scoped allocator composed of all inner allocators of *this, with the first inner allocator becoming the outer allocator. Slay, but make it allocator vibes. 🌸


πŸ’– Parameters πŸ’–

(none) β€” not a single parameter, bestie. πŸŽ€


πŸ¦‹ Return value πŸ¦‹

A reference to the inner allocator, which is itself a std::scoped_allocator_adaptor. Iconic behavior, honestly. πŸ‘‘


🌈 See also 🌈

  • outer_allocator β€” obtains an outer_allocator reference (public member function). iykyk πŸ’«

okay bye bestie πŸ’– this page came from http://cppreference.com, dated 2024.06.10, with the manual label std::scoped...r_allocator(3) β€” mwah, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from