std::deque::get_allocator(3)

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

πŸ’… std::deque::get_allocator(3) πŸ’…

Okay bestie, welcome to the <std::deque::get_allocator> page from the C++ Standard Libary manual β€” yes, that spelling is exactly what the header says, and we are respecting it. πŸ’–

✨ NAME ✨

std::deque::get_allocator β€” literally std::deque::get_allocator. The name is the name, no cap. It's giving self-titled album energy. πŸŽ€

πŸŽ€ Synopsis πŸŽ€

Okay so here's the signature, exactly as it appears:

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

Returns the allocator associated with the container. Also, (noexcept since C++11) is right there on the signature β€” noted, slay. πŸ’…

🌸 Parameters 🌸

(none) β€” literally no parameters. Not a single one. The parameter list is empty and living its best life. πŸ™ˆ

πŸ¦‹ Return value πŸ¦‹

The associated allocator. That's it. That's the return value. 🫢

πŸ‘‘ Complexity πŸ‘‘

Constant. Lowkey the easiest complexity reveal ever. ⭐


source/version: http://cppreference.com Β· date: 2024.06.10 β€” that's the footer tea, bestie πŸ’–

πŸ“¦ where this page comes from