cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::unordered_set<Key,Hash,KeyEqual,Allocator>::
hash_function
來自 cppreference.com
<
cpp
|
容器
|
無序集合
[編輯模板]
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::unordered_set
成員型別
成員函式
unordered_set::unordered_set
unordered_set::~unordered_set
unordered_set::operator=
unordered_set::get_allocator
迭代器
unordered_set::begin
unordered_set::cbegin
unordered_set::end
unordered_set::cend
容量
unordered_set::size
unordered_set::max_size
unordered_set::empty
修改器
unordered_set::clear
unordered_set::erase
unordered_set::swap
unordered_set::extract
(C++17)
unordered_set::merge
(C++17)
unordered_set::insert
unordered_set::insert_range
(C++23)
unordered_set::emplace
unordered_set::emplace_hint
查詢
unordered_set::count
unordered_set::find
unordered_set::contains
(C++20)
unordered_set::equal_range
桶介面
unordered_set::begin
(size_type)
unordered_set::cbegin
(size_type)
unordered_set::end
(size_type)
unordered_set::cend
(size_type)
unordered_set::bucket_count
unordered_set::max_bucket_count
unordered_set::bucket_size
unordered_set::bucket
雜湊策略
unordered_set::load_factor
unordered_set::max_load_factor
unordered_set::rehash
unordered_set::reserve
觀察器
unordered_set::hash_function
unordered_set::key_eq
非成員函式
operator==
operator!=
(until C++20)
std::swap
(std::unordered_set)
erase_if
(std::unordered_set)
(C++20)
推導指南
(C++17起)
[編輯]
hasher hash_function
(
)
const
;
(C++11 起)
返回鍵的雜湊函式。
目錄
1
引數
2
返回值
3
複雜度
4
參見
[
編輯
]
引數
(無)
[
編輯
]
返回值
雜湊函式。
[
編輯
]
複雜度
常數時間。
[
編輯
]
參閱
key_eq
返回用於比較鍵是否相等的函式
(public member function)
[edit]