std::basic_string<CharT,Traits,Allocator>::get_allocator
来自 zh.cppreference.net
allocator_type get_allocator() const;
|
(C++20 起为 noexcept) (C++20 起为 constexpr) |
|
返回与该字符串关联的分配器。
参数
(无)
返回值
关联的分配器。
复杂度
常量。
参见
|
默认分配器
(类模板) |
|
|
(C++11)
|
提供分配器类型的信息
(类模板) |
|
(C++11)
|
检查指定类型是否支持使用分配器构造
(类模板) |