<hash_map>

注意事項注意事項

此標題已過時。這個選項是 <unordered_map>

定義容器樣板類別 hash_map 和 hash_multimap 及其支援的樣板。

在 Visual C++ .NET Pocket PC, <hash_map> 和 <hash_set> 標頭檔的成員不在 std 命名空間,,而是移至 stdext 命名空間。 如需詳細資訊,請參閱 Namespace stdext

#include <hash_map>

6x7w9f6z.collapse_all(zh-tw,VS.110).gif運算子

Hash_map 版本

Hash_multimap 版本

描述

運算子! = (hash_map)

運算子! = (hash_multimap)

測試,如果在運算子左方的 hash_map 或 hash_multimap 物件等於右邊的 hash_map 或 hash_multimap 物件不相等。

operator== (hash_map)

operator== (hash_multimap)

測試,如果在運算子左方的 hash_map 或 hash_multimap 物件等於右邊的 hash_multimap hash_map 或物件。

6x7w9f6z.collapse_all(zh-tw,VS.110).gif特製化樣板函式

Hash_map 版本

Hash_multimap 版本

描述

交換 (hash_map)

交換 (hash_multimap)

交換兩 hash_maps 或 hash_multimaps 的項目。

6x7w9f6z.collapse_all(zh-tw,VS.110).gif類別

hash_compare 類別

描述可以由任何雜湊結合容器的物件— hash_map、hash_multimap、hash_set 或 hash_multiset —用來做為預設 Traits 參數物件排序和雜湊項目所包含。

value_compare 類別

提供可以藉由比較其索引鍵的值會決定它們在 hash_map 的相對順序比較 hash_map 的項目物件。

hash_map 類別

用於資料儲存區和快速擷取從每個項目都是對具有排序鍵值是唯一的和有相關聯的資料值的集合。

hash_multimap 類別

用於資料儲存區和快速擷取從每個項目都是對具有排序鍵值不需要是唯一的和有相關聯的資料值的集合。

需求

標題: <hash_map>

命名空間: stdext

請參閱

參考

在標準 C++ 程式庫中的執行緒安全

標準樣板程式庫

其他資源

標頭檔