proxygen
folly::hasher< bool > Struct Template Reference

#include <Hash.h>

Public Types

using folly_is_avalanching = std::true_type
 

Public Member Functions

size_t operator() (bool key) const noexcept
 

Detailed Description

template<>
struct folly::hasher< bool >

Definition at line 434 of file Hash.h.

Member Typedef Documentation

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

Definition at line 435 of file Hash.h.

Member Function Documentation

size_t folly::hasher< bool >::operator() ( bool  key) const
inlinenoexcept

Definition at line 437 of file Hash.h.

References max.

437  {
438  // Make sure that all the output bits depend on the input.
439  return key ? std::numeric_limits<size_t>::max() : 0;
440  }
LogLevel max
Definition: LogLevel.cpp:31

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