i need to compare two multimap objects to find out whether they are equal or not
i know by using std::equal we can compare two vector object equality but is it possible to use this algorithm for comparing to multimap objects?
typedef std::multimap<std::string, std::string> HeaderMap;
HeaderMap _map,_secMap;
_map.insert(HeaderMap::value_type("A", "a"));
_map.insert(HeaderMap::value_type("B", "b"));
_secMap.insert(HeaderMap::value_type("A", "a"));
_secMap.insert(HeaderMap::value_type("B", "b"));
**std::equal(_map.begin(),_map.end(),_secMap.begin()); // is this true?**
if above code snippet is not true, how i can compare two multimap objects?(i don't ant to iterate objects and compare keys and values one by one) thanks