Struct PairHash

Struct Documentation

struct PairHash

Define a hash function for std::pair.

Public Functions

template<typename T, typename U>
inline std::size_t operator()(const std::pair<T, U> &p) const

A hash function for std::pair.

Template Parameters
  • T – The type of the first element of the pair

  • U – The type of the first element of the pair

Parameters

p – A pair to compute hash