diff --git a/src/id_map.hh b/src/id_map.hh index 9b6f553b..e4c331de 100644 --- a/src/id_map.hh +++ b/src/id_map.hh @@ -72,14 +72,7 @@ public: template bool operator==(const IdMap& other) const { - if (size() != other.size()) - return false; - for (size_t i = 0, s = size(); i < s; ++i) - { - if (m_content[i] != other.m_content[i]) - return false; - } - return true; + return size() == other.size() and std::equal(begin(), end(), other.begin()); } template