名前空間
変種
操作

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

From cppreference.com
< cpp‎ | string‎ | basic string
 
 
 
std::basic_string
 
allocator_type get_allocator() const;
(C++20 以降 noexcept)
(C++20 以降 constexpr)

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

目次

[編集] パラメータ

(なし)

[編集] 返り値

関連付けられたアロケータ。

[編集] 計算量

定数。

[編集] 関連項目

デフォルトアロケータ
(クラステンプレート) [編集]
アロケータ型に関する情報を提供します
(クラステンプレート) [編集]
指定された型が uses-allocator 構築をサポートしているかどうかをチェックします
(クラステンプレート) [編集]
English 日本語 中文(简体) 中文(繁體)