◐ Shell
clean mode source ↗

std::basic_string<CharT,Traits,Allocator>::get_allocator - cppreference.com

提供: cppreference.com

<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>

allocator_type get_allocator() const;

(C++20未満)

constexpr allocator_type get_allocator() const;

(C++20以上)

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

引数

(なし)

戻り値

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

計算量

一定。

関連項目