Struct PairHash

Struct Documentation

struct PairHash

Struct to create hash for pair.

Public Functions

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

Overloaded operator to return hash value of a pait.

Return
size_t hash of the pair
Parameters
  • p: pair who’s hash is to be calculated