cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::forward_list<T,Allocator>::
get_allocator
來自 cppreference.com
<
cpp
|
容器
|
forward_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::forward_list
成員函式
forward_list::forward_list
forward_list::~forward_list
forward_list::operator=
forward_list::assign
forward_list::assign_range
(C++23)
forward_list::get_allocator
元素訪問
forward_list::front
迭代器
forward_list::before_begin
forward_list::cbefore_begin
forward_list::begin
forward_list::cbegin
forward_list::end
forward_list::cend
容量
forward_list::empty
forward_list::max_size
修改器
forward_list::clear
forward_list::emplace_front
forward_list::push_front
forward_list::insert_after
forward_list::emplace_after
forward_list::erase_after
forward_list::insert_range_after
(C++23)
forward_list::prepend_range
(C++23)
forward_list::pop_front
forward_list::resize
forward_list::swap
操作
forward_list::merge
forward_list::splice_after
forward_list::remove
forward_list::remove_if
forward_list::reverse
forward_list::unique
forward_list::sort
非成員函式
operator==
operator<=>
(C++20 起)
swap
(std::forward_list)
erase
(std::forward_list)
erase_if
(std::forward_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
noexcept
;
(C++11 起)
返回與容器關聯的分配器。
[
編輯
]
引數
(無)
[
編輯
]
返回值
關聯的分配器。
[
編輯
]
複雜度
常數時間。