std::forwar...t_allocator(3)

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

πŸ’– NAME πŸ’–

std::forward_list::get_allocator - std::forward_list::get_allocator

okay so bestie, we're in the C++ Standard Libary manual (yes, exact spelling, keepin' it cute) and the main character is std::forward_list::get_allocator. The NAME is literally the same thing twice, and the way that's so iconic? periodt. πŸ’…

✨ Synopsis ✨

allocator_type get_allocator() const noexcept;  (since C++11)

It returns the allocator associated with the container. That's the whole flex. πŸ¦‹

🫢 Parameters 🫢

(none) β€” not a single argument, bestie. zero. nada. πŸŽ€

🌸 Return value 🌸

The associated allocator. literally that. πŸ’–

πŸŽ€ Complexity πŸŽ€

Constant. no extra drama, no cap. πŸ’…


xoxo, your C++ Standard Libary bestie πŸ’œ β€” source/version: http://cppreference.com, dated 2024.06.10, and the footer title was std::forwar...t_allocator(3). 🫢

πŸ“¦ where this page comes from