Namespaces
Variants
Actions

std::set<Key,Compare,Allocator>::get_allocator

From cppreference.com
< cpp‎ | container‎ | set
 
C++
 
Containers library
 
std::set
allocator_type get_allocator() const;
(noexcept since C++11)
(constexpr since C++26)

Returns the allocator associated with the container.

[edit] Return value

The associated allocator.

[edit] Complexity

Constant.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant