Audacity 3.2.0
Functions
anonymous_namespace{Tags.cpp} Namespace Reference

Functions

bool EqualMaps (const TagMap &map1, const TagMap &map2)
 

Function Documentation

◆ EqualMaps()

bool anonymous_namespace{Tags.cpp}::EqualMaps ( const TagMap map1,
const TagMap map2 
)

Definition at line 305 of file Tags.cpp.

306 {
307 // Maps are unordered, hash maps; can't just iterate in tandem and
308 // compare.
309 if (map1.size() != map2.size())
310 return false;
311
312 for (const auto &pair : map2) {
313 auto iter = map1.find(pair.first);
314 if (iter == map1.end() || iter->second != pair.second)
315 return false;
316 }
317
318 return true;
319 }