名稱空間
變體
操作

std::vector<T,Allocator>::get_allocator

來自 cppreference.com
< cpp‎ | 容器‎ | vector
 
 
 
 
allocator_type get_allocator() const;
(C++11 起無異常丟擲)
(C++20 起為 constexpr)

返回與容器關聯的分配器。

[編輯] 引數

(無)

[編輯] 返回值

關聯的分配器。

[編輯] 複雜度

常數時間。