OmniSciDB  c07336695a
std::hash< vector< T > > Struct Template Reference

Public Member Functions

size_t operator() (const vector< T > &vint) const
 

Detailed Description

template<typename T>
struct std::hash< vector< T > >

Definition at line 369 of file ProfileTest.cpp.

Member Function Documentation

◆ operator()()

template<typename T >
size_t std::hash< vector< T > >::operator() ( const vector< T > &  vint) const
inline

Definition at line 370 of file ProfileTest.cpp.

References anonymous_namespace{ProfileTest.cpp}::hash_combine().

370  {
371  size_t seed = 0;
372  for (auto i : vint) {
373  // Combine the hash of the current vector with the hashes of the previous
374  // ones
375  hash_combine(seed, i);
376  }
377  return seed;
378  }
void hash_combine(std::size_t &seed, T const &v)
+ Here is the call graph for this function:

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