名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | string‎ | basic_string
 
 
 
std::basic_string
 
allocator_type get_allocator() const;
(noexcept since C++20)
(C++20 起為 constexpr)

返回與字串關聯的分配器。

目錄

[編輯] 引數

(無)

[編輯] 返回值

關聯的分配器。

[編輯] 複雜度

常數時間。

[編輯] 參閱

預設分配器
(類模板) [編輯]
提供關於分配器型別的資訊
(類模板) [編輯]
檢查指定型別是否支援 uses-allocator 構造
(類模板) [編輯]