proxygen
folly::TupleHasher< index, Ts > Struct Template Reference

#include <Hash.h>

Public Member Functions

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

Detailed Description

template<size_t index, typename... Ts>
struct folly::TupleHasher< index, Ts >

Definition at line 682 of file Hash.h.

Member Function Documentation

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

Definition at line 683 of file Hash.h.

References folly::hash::hash_combine().

683  {
684  return hash::hash_combine(
685  TupleHasher<index - 1, Ts...>()(key), std::get<index>(key));
686  }
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: