proxygen
folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual Struct Reference

Public Member Functions

 KeyValueEqual (const TKeyEqual &keyEqual)
 
bool operator() (const TKey &lhs, const Node &rhs) const
 
bool operator() (const Node &lhs, const TKey &rhs) const
 
bool operator() (const Node &lhs, const Node &rhs) const
 

Public Attributes

TKeyEqual equal
 

Detailed Description

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
struct folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual

Definition at line 445 of file EvictingCacheMap.h.

Constructor & Destructor Documentation

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual::KeyValueEqual ( const TKeyEqual &  keyEqual)
inline

Definition at line 446 of file EvictingCacheMap.h.

446 : equal(keyEqual) {}

Member Function Documentation

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
bool folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual::operator() ( const TKey &  lhs,
const Node rhs 
) const
inline

Definition at line 447 of file EvictingCacheMap.h.

References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::Node::pr.

447  {
448  return equal(lhs, rhs.pr.first);
449  }
template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
bool folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual::operator() ( const Node lhs,
const TKey &  rhs 
) const
inline

Definition at line 450 of file EvictingCacheMap.h.

References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::Node::pr.

450  {
451  return equal(lhs.pr.first, rhs);
452  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
bool folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual::operator() ( const Node lhs,
const Node rhs 
) const
inline

Definition at line 453 of file EvictingCacheMap.h.

References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::Node::pr.

453  {
454  return equal(lhs.pr.first, rhs.pr.first);
455  }

Member Data Documentation

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
TKeyEqual folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyValueEqual::equal

Definition at line 456 of file EvictingCacheMap.h.


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