42#ifdef PB_DS_CLASS_C_DEC
45inline typename PB_DS_CLASS_C_DEC::size_type
48{
return m_num_used_e; }
51inline typename PB_DS_CLASS_C_DEC::size_type
54{
return m_entry_allocator.max_size(); }
61{
return (
size() == 0); }
64template<
typename Other_HT_Map_Type>
67operator==(
const Other_HT_Map_Type& other)
const
68{
return cmp_with_other(other); }
71template<
typename Other_Map_Type>
74cmp_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)
99template<
typename Other_HT_Map_Type>
102operator!=(
const Other_HT_Map_Type& other)
const
103{
return !operator==(other); }
constexpr auto size(const _Container &__cont) noexcept(noexcept(__cont.size())) -> decltype(__cont.size())
Return the size of a container.