public member function
<unordered_set>
std::unordered_set::get_allocator
allocator_type get_allocator() const noexcept;
Get allocator
Parameters
noneReturn Value
The allocator.Member type
allocator_type is the type of the allocator used by the container, defined in unordered_set as an alias of its fourth template parameter (Alloc).Complexity
Constant.Iterator validity
No changes.See also
- unordered_set::hash_function
- Get hash function (public member type)
- unordered_set::key_eq
- Get key equivalence predicate (public member type)
- allocator
- Default allocator (class template)