std::basic_string<CharT,Traits,Allocator>::get_allocator_C++中文网
| allocator_type get_allocator() const; |
(C++20 前) | |
| constexpr allocator_type get_allocator() const; |
(C++20 起) | |
返回与 string 关联的分配器。
参数
(无)
返回值
关联的分配器
复杂度
常数
std::basic_string<CharT,Traits,Allocator>::get_allocator_C++中文网
| allocator_type get_allocator() const; |
(C++20 前) | |
| constexpr allocator_type get_allocator() const; |
(C++20 起) | |
返回与 string 关联的分配器。
(无)
关联的分配器
常数