<hash_set>

备注

此头为过时。替代为 <unordered_set>

定义 hash_set 容器模板类和 hash_multiset 及其支持的模板。

#include <hash_set>

备注

在 Visual C++ .NET 2003 中,和 <hash_map><hash_set> 头文件的成员不再处于 std 命名空间,而是,将 stdext 命名空间。 有关更多信息,请参见 stdext 命名空间

运算符

Hash_set 版本

Hash_multiset 版本

说明

运算符。= (hash_set)

运算符。= (hash_multiset)

测试,如果运算符左侧的 hash_set 或 hash_multiset 对象与右侧的 hash_set 或 hash_multiset 对象不等于。

operator== (hash_set)

operator== (hash_multiset)

测试,如果运算符左侧的 hash_set 或 hash_multiset 对象与右侧的 hash_set 或 hash_multiset 对象相等。

专用的函数模板

Hash_set 版本

Hash_multiset 版本

说明

交换 (hash_set)

交换 (hash_multiset)

交换两个 hash_sets 或 hash_multisets 的元素。

hash_compare 类

描述可供任何哈希与容器的对象 (hash_map、hash_multimap、hash_set 或用于 hash_multiset - 用作默认 特征 参数对象对和元素对它们包含。

hash_set 类

为数据存储和快速检索。元素包含值的集合的使用和作为唯一的键值。

hash_multiset 类

为数据存储和快速检索。元素包含值的集合的使用和作为唯一的键值。

请参见

参考

C++ 标准库中的线程安全

标准模板库

其他资源

C++ 标准库头文件