std::set::get_allocator(3)

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

Okay bestie, this is std::set::get_allocator(3) from the C++ Standard Libary manual, and it's a tiny little icon. πŸŽ€

πŸ’– NAME πŸ’–

std::set::get_allocator β€” std::set::get_allocator. Yep, the name said it twice, and honestly? Main character energy. πŸ’…


✨ Synopsis ✨

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

Returns the allocator associated with the container. And since C++11 it's all noexcept, no cap. πŸ¦‹


🌸 Parameters 🌸

(none) β€” literally none, bestie. Zero parameters. Not a single one. 🫢


πŸ¦‹ Return value πŸ¦‹

The associated allocator. That's the whole return vibe. ✨


⭐ Complexity ⭐

Constant. That's it, that's the complexity. πŸ‘‘


Cute sign-off: brought to you by http://cppreference.com, dated 2024.06.10 β€” mwah πŸ’‹

πŸ“¦ where this page comes from