42 #ifndef PB_DS_HASH_EQ_FN_HPP
43 #define PB_DS_HASH_EQ_FN_HPP
53 template<
typename Key,
typename Eq_Fn,
typename _Alloc,
bool Store_Hash>
57 template<
typename Key,
typename Eq_Fn,
typename _Alloc>
71 {
return eq_fn_base::operator()(r_lhs_key, r_rhs_key); }
75 {
std::swap((Eq_Fn&)(*
this), (Eq_Fn&)other); }
80 template<
typename Key,
class Eq_Fn,
class _Alloc>
97 || lhs_hash == rhs_hash);
99 return (lhs_hash == rhs_hash &&
100 eq_fn_base::operator()(r_lhs_key, r_rhs_key));
105 {
std::swap((Eq_Fn&)(*
this), (Eq_Fn&)(other)); }
hash_eq_fn()
Definition: hash_eq_fn.hpp:88
_Alloc::size_type size_type
Definition: hash_eq_fn.hpp:83
hash_eq_fn(const Eq_Fn &r_eq_fn)
Definition: hash_eq_fn.hpp:90
void swap(const hash_eq_fn &other)
Definition: hash_eq_fn.hpp:104
Eq_Fn eq_fn_base
Definition: hash_eq_fn.hpp:60
#define false
Definition: stdbool.h:35
Primary template.
Definition: hash_eq_fn.hpp:54
hash_eq_fn()
Definition: hash_eq_fn.hpp:64
key_allocator::const_reference key_const_reference
Definition: hash_eq_fn.hpp:86
#define _GLIBCXX_DEBUG_ASSERT(_Condition)
Definition: debug.h:61
#define true
Definition: stdbool.h:34
void swap(const hash_eq_fn &other)
Definition: hash_eq_fn.hpp:74
bool operator()(key_const_reference r_lhs_key, key_const_reference r_rhs_key) const
Definition: hash_eq_fn.hpp:69
Eq_Fn eq_fn_base
Definition: hash_eq_fn.hpp:84
_Alloc::template rebind< Key >::other key_allocator
Definition: hash_eq_fn.hpp:85
bool operator()(key_const_reference r_lhs_key, size_type lhs_hash, key_const_reference r_rhs_key, size_type rhs_hash) const
Definition: hash_eq_fn.hpp:93
_Alloc::template rebind< Key >::other key_allocator
Definition: hash_eq_fn.hpp:61
key_allocator::const_reference key_const_reference
Definition: hash_eq_fn.hpp:62
hash_eq_fn(const Eq_Fn &r_eq_fn)
Definition: hash_eq_fn.hpp:66
void swap(exception_ptr &__lhs, exception_ptr &__rhs)
Definition: exception_ptr.h:160