Drake
hash.h File Reference
#include <cstddef>
#include <functional>
#include <iostream>
#include <map>
#include <set>
#include <utility>
#include <vector>
#include "drake/common/drake_assert.h"
Include dependency graph for hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hash_value< T >
 Computes the hash value of v using std::hash. More...
 
struct  hash_value< std::pair< T1, T2 > >
 Computes the hash value of a pair p. More...
 
struct  hash_value< std::vector< T > >
 Computes the hash value of a vector vec. More...
 
struct  hash_value< std::set< T > >
 Computes the hash value of a set s. More...
 
struct  hash_value< std::map< T1, T2 > >
 Computes the hash value of a map map. More...
 

Namespaces

 drake
 

Functions

template<class T >
size_t hash_combine (size_t seed, const T &v)
 Combines a given hash value seed and a hash of parameter v. More...
 
template<class T , class... Rest>
size_t hash_combine (size_t seed, const T &v, Rest...rest)
 
template<typename It >
size_t hash_range (It first, It last)
 Computes the combined hash value of the elements of an iterator range. More...