std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::get_allocator
From cppreference.com
< cpp | container | unordered map
C++
Containers library
Sequence | ||||
(C++11) | ||||
(C++11) | ||||
Associative | ||||
Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Adaptors | ||||
Views | ||||
(C++20) |
std::unordered_map
Member functions | ||||
unordered_map::get_allocator | ||||
Iterators | ||||
Capacity | ||||
Modifiers | ||||
(C++17) | ||||
(C++17) | ||||
(C++17) | ||||
Lookup | ||||
(C++20) | ||||
Bucket interface | ||||
Hash policy | ||||
Observers | ||||
Non-member functions | ||||
(until C++20) | ||||
(C++20) | ||||
Deduction guides(C++17) |
allocator_type get_allocator() const noexcept; |
(since C++11) | |
Returns the allocator associated with the container.
Parameters
(none)
Return value
The associated allocator.
Complexity
Constant.