std::
unordered_multiset::get_allocator
公众成员函数 <unordered_set>
allocator_type get_allocator() const noexcept;
获取分配器
返回用于构造容器的分配器对象。
☲ 参数
-
none
☉ 返回值
分配器。成员类型allocator_type是容器使用的分配器的类型,在unordered_multiset中定义为它的第四个模板参数(Alloc)的别名。
✥ 复杂度
常量
☣ 迭代器的有效性
不变
🍄 另请参阅
unordered_multiset::hash_function |
获取哈希函数(公众成员函数) |
unordered_multiset::key_eq |
获取键的等价谓词(公众成员函数) |
allocator |
默认分配器(类模板) |