首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::basic_string::get_allocator

allocator_type get_allocator() const;

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

参数

%280%29

返回值

相关联的分配器。

复杂性

常量。

另见

allocator

the default allocator (class template)

allocator_traits (C++11)

provides information about allocator types (class template)

uses_allocator (C++11)

checks if the specified type supports uses-allocator construction (class template)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券