cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::list<T,Allocator>::
get_allocator
來自 cppreference.com
<
cpp
|
容器
|
list
[編輯模板]
C++
編譯器支援
自由(freestanding)與宿主(hosted)
語言
標準庫
標準庫標頭檔案
具名要求
特性測試宏
(C++20)
語言支援庫
概念庫
(C++20)
診斷庫
記憶體管理庫
超程式設計庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
演算法庫
字串庫
文字處理庫
數值庫
日期和時間庫
輸入/輸出庫
檔案系統庫
(C++17)
併發支援庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
容器庫
序列
array
(C++11)
vector
vector<bool>
inplace_vector
(C++26)
hive
(C++26)
deque
forward_list
(C++11)
list
關聯
set
multiset
map
multimap
無序關聯
unordered_set
(C++11)
unordered_multiset
(C++11)
unordered_map
(C++11)
unordered_multimap
(C++11)
介面卡
stack
queue
priority_queue
flat_set
(C++23)
flat_multiset
(C++23)
flat_map
(C++23)
flat_multimap
(C++23)
檢視
span
(C++20)
mdspan
(C++23)
表格
迭代器失效
成員函式表格
非成員函式表格
[編輯]
std::list
成員函式
list::list
list::~list
list::operator=
list::assign
list::assign_range
(C++23)
list::get_allocator
元素訪問
list::front
list::back
迭代器
list::begin
list::cbegin
(C++11)
list::end
list::cend
(C++11)
list::rbegin
list::crbegin
(C++11)
list::rend
list::crend
(C++11)
容量
list::size
list::empty
list::max_size
修改器
list::clear
list::insert
list::insert_range
(C++23)
list::emplace
(C++11)
list::erase
list::push_front
list::emplace_front
(C++11)
list::prepend_range
(C++23)
list::pop_front
list::push_back
list::emplace_back
(C++11)
list::append_range
(C++23)
list::pop_back
list::resize
list::swap
操作
list::merge
list::splice
list::remove
list::remove_if
list::reverse
list::unique
list::sort
非成員函式
operator==
operator<=>
(C++20 起)
swap
(std::list)
erase
(std::list)
erase_if
(std::list)
(C++20)
(C++20)
operator!=
operator<
operator>
operator<=
operator>=
(until C++20)
(until C++20)
(until C++20)
(until C++20)
(until C++20)
推導指引
(C++17)
[編輯]
allocator_type get_allocator
(
)
const
;
(C++11 起無異常丟擲)
返回與容器關聯的分配器。
[
編輯
]
引數
(無)
[
編輯
]
返回值
關聯的分配器。
[
編輯
]
複雜度
常數時間。