Namespaces
Variants
Actions
ads via Carbon Start an annual website plan, and get a free domain name with Squarespace. ads via Carbon

std::map<Key,T,Compare,Allocator>::get_allocator

From cppreference.com
< cpp‎ | container‎ | map
 
 
 
 
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.