名稱空間
變體
操作

std::set<Key,Compare,Allocator>::get_allocator

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

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

[編輯] 引數

(無)

[編輯] 返回值

關聯的分配器。

[編輯] 複雜度

常數時間。