Lagrange
|
Compute an order-dependent hash of a pair of values. More...
#include <lagrange/utils/hash.h>
Public Member Functions | |
size_t | operator() (const T &k) const |
Compute an order-dependent hash of a pair of values.
The default template handles std::array
, std::vector
, Eigen vectors, raw pointers/C-arrays, and other classes with an array indexing operator[]
. (Note that only the first two elements of the array will be hashed.) Other specializations handle std::pair
etc.