Lagrange
OrderedPairHash< T, Enable > Struct Template Reference

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
 

Detailed Description

template<typename T, typename Enable = void>
struct lagrange::OrderedPairHash< T, Enable >

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.


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