minimum-cost-to-make-at-least-one-valid-path-in-a-grid 1.0.0
Minimum Cost to Make at Least One Valid Path in a Grid
Loading...
Searching...
No Matches
pair_hash Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 5 of file main.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 8 of file main.cpp.

9 {
10 auto hash1 = std::hash<T1>{}(p.first);
11 auto hash2 = std::hash<T2>{}(p.second);
12 return hash1 ^ hash2;
13 }

The documentation for this struct was generated from the following file: