std::scoped...or_adaptor::(3)

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

okay so bestie, welcome to the std::scoped...or_adaptor::(3) page from the C++ Standard Libary β€” yes, that’s the spelling on the header, and yes, the manual name std::scoped...or_adaptor::(3) shows up again, we’re keeping the chaos πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

  • std::scoped_allocator_adaptor:: β€” the NAME line literally says std::scoped_allocator_adaptor:: - std::scoped_allocator_adaptor::, doubled colon and all. We are not editing it, we are respecting the icon behavior πŸ˜­πŸ’–

✨ Synopsis ✨

Here’s the exact synopsis, no cap:

Defined in header <scoped_allocator>
scoped_allocator_adaptor select_on_container_copy_construction()
(since C++11)
const;

This one is (since C++11), bestie β€” vintage but still slaying 🌸

It creates a new instance of std::scoped_allocator_adaptor, where the outer allocator base class and each inner allocator subobject are obtained by calling std::allocator_traits<A>::select_on_container_copy_construction(). that’s the whole lore 🫢

🌈 Parameters 🌈

  • (none) β€” literally none. no args, no drama, just vibes 🧚

πŸ¦‹ Return value πŸ¦‹

A new std::scoped_allocator_adaptor object, constructed from correctly copied allocators. slay ✨

πŸ‘‘ See also πŸ‘‘

  • select_on_container_copy_construction [static] β€” obtains the allocator to use after copying a standard container (public static member function of std::allocator_traits<Alloc>). iykyk πŸ’œ

okay that’s the whole page, mwah πŸ’‹ β€” the footer’s source/version/date vibes are http://cppreference.com, 2024.06.10, and std::scoped...or_adaptor::(3). byeee πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from