proxygen
folly::TupleHasher< 0, Ts... > Struct Template Reference

#include <Hash.h>

Public Member Functions

size_t operator() (std::tuple< Ts... > const &key) const
 

Detailed Description

template<typename... Ts>
struct folly::TupleHasher< 0, Ts... >

Definition at line 691 of file Hash.h.

Member Function Documentation

template<typename... Ts>
size_t folly::TupleHasher< 0, Ts... >::operator() ( std::tuple< Ts... > const &  key) const
inline

Definition at line 692 of file Hash.h.

References folly::hash::hash_combine().

692  {
693  // we could do std::hash here directly, but hash_combine hides all the
694  // ugly templating implicitly
695  return hash::hash_combine(std::get<0>(key));
696  }
size_t hash_combine(const T &t, const Ts &...ts) noexcept(noexcept(hash_combine_generic(StdHasher{}, t, ts...)))
Definition: Hash.h:669

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