Namespaces
Variants

std::unordered_map<Key,T,Hash,KeyEqual,Allocator>:: get_allocator

From cppreference.net

allocator_type get_allocator ( ) const noexcept ;
(自 C++11 起)
(自 C++26 起为 constexpr)

返回与容器关联的分配器。

返回值

关联的分配器。

复杂度

常量。