problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
acwing::acwing858_408::pair_hash结构体 参考

#include <acwing408.h>

Public 成员函数

template<class T1, class T2>
size_t operator() (const pair< T1, T2 > &p) const
 

详细描述

在文件 acwing408.h146 行定义.

成员函数说明

◆ operator()()

template<class T1, class T2>
size_t acwing::acwing858_408::pair_hash::operator() ( const pair< T1, T2 > & p) const

在文件 acwing408.cpp695 行定义.

695 {
696 auto h1 = hash<T1>{}(p.first);
697 auto h2 = hash<T2>{}(p.second);
698 return h1 ^ h2;
699 }

引用了 operator()().

被这些函数引用 operator()().


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