/// swaps the contents void swap(fifo_map& other) { std::swap(m_map, other.m_map); std::swap(m_compare, other.m_compare); std::swap(m_keys, other.m_keys); } m_compare‘s member m_key point to m_map's m_key