std::set<Key,Compare,Allocator>::get_allocator

来自cppreference.com
< cpp‎ | container‎ | set
 
 
 
 
allocator_type get_allocator() const;
(C++11 起为 noexcept)
(C++26 起为 constexpr)

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

[编辑] 返回值

关联的分配器。

[编辑] 复杂度

常数。