42#ifdef PB_DS_CLASS_C_DEC
45template<
typename Other_HT_Map_Type>
48operator==(
const Other_HT_Map_Type& other)
const
49{
return cmp_with_other(other); }
52template<
typename Other_Map_Type>
55cmp_with_other(
const Other_Map_Type& other)
const
57 if (
size() != other.size())
60 for (
typename Other_Map_Type::const_iterator it = other.begin();
61 it != other.end(); ++it)
63 key_const_reference r_key = key_const_reference(PB_DS_V2F(*it));
65 mapped_const_pointer p_mapped_value =
66 const_cast<PB_DS_CLASS_C_DEC&
>(*this).
67 find_key_pointer(r_key, traits_base::m_store_extra_indicator);
69 if (p_mapped_value == 0)
72#ifdef PB_DS_DATA_TRUE_INDICATOR
73 if (p_mapped_value->second != it->second)
81template<
typename Other_HT_Map_Type>
84operator!=(
const Other_HT_Map_Type& other)
const
85{
return !operator==(other); }
constexpr auto size(const _Container &__cont) noexcept(noexcept(__cont.size())) -> decltype(__cont.size())
Return the size of a container.