public member function
<unordered_map>

std::unordered_map::get_allocator

allocator_type get_allocator() const noexcept;
Get allocator
返回用於構造容器的分配器物件。

引數



返回值

The allocator.

成員型別allocator_typeis the type of the allocator used by the container, defined in unordered_map as an alias of its fifth template parameter (Alloc).

複雜度

常量。

迭代器有效性

沒有變化。

另見