DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DA::pair_hash结构体 参考

Hash function for std::pair to be used in unordered containers 更多...

#include <da_hash_table.hpp>

Public 成员函数

template<class T1 , class T2 >
std::size_t operator() (const std::pair< T1, T2 > &p) const noexcept
 Hash function for std::pair to be used in unordered containers
 

详细描述

Hash function for std::pair to be used in unordered containers

成员函数说明

◆ operator()()

template<class T1 , class T2 >
std::size_t DA::pair_hash::operator() ( const std::pair< T1, T2 > &  p) const
noexcept

Hash function for std::pair to be used in unordered containers

模板参数
T1第一个元素的类型
T2第二个元素的类型
参数
p要哈希的pair
返回
哈希值
std::size_t h = hasher(std::make_pair(1, 2)); // 计算哈希值
Hash function for std::pair to be used in unordered containers
Definition da_hash_table.hpp:18

该结构体的文档由以下文件生成: