public member function
<unordered_set>

std::unordered_set::get_allocator

allocator_type get_allocator() const noexcept;
Get allocator
Returns the allocator object used to construct the container.

Parameters

none

Return 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