INET Framework for OMNeT++/OMNEST
inet::pair_hash Struct Reference

#include <stlutils.h>

Public Member Functions

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

Member Function Documentation

◆ operator()()

template<class T1 , class T2 >
std::size_t inet::pair_hash::operator() ( const std::pair< T1, T2 > &  pair) const
inline
176  {
177  return std::hash<T1>()(pair.first) ^ std::hash<T2>()(pair.second); // combining could be more sophisticated
178  }

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