proxygen
std::hash< std::pair< T1, T2 > > Struct Template Reference

#include <Hash.h>

Public Types

using folly_is_avalanching = std::true_type
 

Public Member Functions

size_t operator() (const std::pair< T1, T2 > &x) const
 

Detailed Description

template<typename T1, typename T2>
struct std::hash< std::pair< T1, T2 > >

Definition at line 715 of file Hash.h.

Member Typedef Documentation

template<typename T1 , typename T2 >
using std::hash< std::pair< T1, T2 > >::folly_is_avalanching = std::true_type

Definition at line 716 of file Hash.h.

Member Function Documentation

template<typename T1 , typename T2 >
size_t std::hash< std::pair< T1, T2 > >::operator() ( const std::pair< T1, T2 > &  x) const
inline

Definition at line 718 of file Hash.h.

References folly::hash::hash_combine().

718  {
719  return folly::hash::hash_combine(x.first, x.second);
720  }
Definition: InvokeTest.cpp:58
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: