problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | 所有成员列表
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 }

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