CXXGraph
0.4.0
CXXGraph is a header only, that manages the Graphs and it's algorithm in C++
|
#include <Typedef.hpp>
Public Member Functions | |
template<class T1 , class T2 > | |
std::size_t | operator() (const std::pair< T1, T2 > &p) const |
The C++ Standard doesn't provide a hash for std::pair type, which is required when using std::pair as a key in std::unordered_map. So, hash function for pair needs to be provided. Hash for a pair is calculated by calcuating hash for individual elements and then combining. For combining, an implmentation similar to boost hash_combine is implemented.