命名空间
变体
操作

std::basic_string<CharT,Traits,Allocator>::get_allocator

来自 cppreference.cn
< cpp‎ | string‎ | basic string
 
 
 
std::basic_string
 
allocator_type get_allocator() const;
(noexcept since C++20)
(constexpr since C++20)

返回与字符串关联的分配器。

目录

[编辑] 参数

(无)

[编辑] 返回值

关联的分配器。

[编辑] 复杂度

常数。

[编辑] 参见

默认分配器
(类模板) [编辑]
提供关于分配器类型的信息
(类模板) [编辑]
检查指定的类型是否支持 uses-allocator 构造
(类模板) [编辑]