目录

get_allocator

描述 (Description)

它返回与字符串关联的allocator对象的副本。

声明 (Declaration)

以下是std :: string :: get_allocator的声明。

allocator_type get_allocator() const;

C++11

allocator_type get_allocator() const noexcept;

C++14

allocator_type get_allocator() const noexcept;

参数 (Parameters)

没有

返回值 (Return Value)

它返回与字符串关联的allocator对象的副本。

异常 (Exceptions)

如果抛出异常,则字符串中没有变化。

↑回到顶部↑
WIKI教程 @2018