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

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

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

目录

[编辑] 参数

���无)

[编辑] 返回值

关联的分配器。

[编辑] 复杂度

常数。

[编辑] 参阅

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