proxygen
folly::hasher< std::string > Struct Template Reference

#include <Hash.h>

Public Types

using folly_is_avalanching = std::true_type
 

Public Member Functions

size_t operator() (const std::string &key) const
 

Detailed Description

template<>
struct folly::hasher< std::string >

Definition at line 495 of file Hash.h.

Member Typedef Documentation

using folly::hasher< std::string >::folly_is_avalanching = std::true_type

Definition at line 496 of file Hash.h.

Member Function Documentation

size_t folly::hasher< std::string >::operator() ( const std::string key) const
inline

Definition at line 498 of file Hash.h.

References folly::hash::SpookyHashV2::Hash64().

498  {
499  return static_cast<size_t>(
500  hash::SpookyHashV2::Hash64(key.data(), key.size(), 0));
501  }
static uint64_t Hash64(const void *message, size_t length, uint64_t seed)
Definition: SpookyHashV2.h:71

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