std::list<T,Allocator>::get_allocator
来自cppreference.com
容器库
std::list
成员函数 | ||||
list::get_allocator
|
||||
元素访问 | ||||
迭代器 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
容量 | ||||
修改器 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
操作 | ||||
非成员函数 | ||||
(C++20)(C++20)
|
||||
(C++20
前)(C++20
前)(C++20
前)(C++20
前)(C++20
前)(C++20)
|
||||
推导指引(C++17) |
allocator_type
get_allocator()
const;
|
(C++11 前) | |
allocator_type
get_allocator()
const
noexcept;
|
(C++11 起) | |
返回与容器关联的分配器。
参数
(无)
返回值
关联的分配器。
复杂度
常数。