If I understand correctly, == will do the job if comparing pointers to the same map (I guess it checks sizes and if each element is at the same position). If the maps are different then iterators should be used? If this is correct, is my code any good?
Checks if the contents of lhs and rhs are equal, that is, whether lhs.size() == rhs.size() and each element in lhs compares equal with the element in rhs at the same position.