名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | string‎ | basic string
 
 
 
std::basic_string
 
allocator_type get_allocator() const;
(C++20未満)
constexpr allocator_type get_allocator() const;
(C++20以上)

文字列に関連付けられているアロケータを返します。

目次

[編集] 引数

(なし)

[編集] 戻り値

関連付けられているアロケータ、

[編集] 計算量

一定。

[編集] 関連項目

デフォルトのアロケータ
(クラステンプレート) [edit]
���ロケータ型に関する情報を提供します
(クラステンプレート) [edit]
指定された型がアロケータ使用構築をサポートしているかどうか調べます
(クラステンプレート) [edit]