42 #ifdef PB_DS_CLASS_C_DEC
45 inline typename PB_DS_CLASS_C_DEC::size_type
48 {
return m_num_used_e; }
51 inline typename PB_DS_CLASS_C_DEC::size_type
54 {
return m_entry_allocator.max_size(); }
61 {
return (
size() == 0); }
64 template<
typename Other_HT_Map_Type>
67 operator==(
const Other_HT_Map_Type& other)
const
68 {
return cmp_with_other(other); }
71 template<
typename Other_Map_Type>
74 cmp_with_other(
const Other_Map_Type& other)
const
76 if (
size() != other.size())
79 for (
typename Other_Map_Type::const_iterator it = other.begin();
80 it != other.end(); ++it)
82 key_const_reference r_key =(key_const_reference)PB_DS_V2F(*it);
83 mapped_const_pointer p_mapped_value =
84 const_cast<PB_DS_CLASS_C_DEC&
>(*this).
85 find_key_pointer(r_key, traits_base::m_store_extra_indicator);
87 if (p_mapped_value == 0)
90 #ifdef PB_DS_DATA_TRUE_INDICATOR
91 if (p_mapped_value->second != it->second)
99 template<
typename Other_HT_Map_Type>
102 operator!=(
const Other_HT_Map_Type& other)
const
bool operator==(const scoped_allocator_adaptor< _OutA1, _InA...> &__a, const scoped_allocator_adaptor< _OutA2, _InA...> &__b) noexcept
constexpr auto empty(const _Container &__cont) noexcept(noexcept(__cont.empty())) -> decltype(__cont.empty())
Return whether a container is empty.
constexpr auto size(const _Container &__cont) noexcept(noexcept(__cont.size())) -> decltype(__cont.size())
Return the size of a container.