Namespaces
Variants

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

From cppreference.net
std::basic_string
allocator_type get_allocator ( ) const ;
(C++20以降 noexcept)
(C++20以降 constexpr)

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

目次

パラメータ

(なし)

戻り値

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

計算量

定数。

関連項目

デフォルトアロケータ
(クラステンプレート)
アロケータ型に関する情報を提供する
(クラステンプレート)
指定された型がuses-allocator構築をサポートするかどうかをチェックする
(クラステンプレート)