Audacity  3.0.3
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 344 of file Tags.cpp.

345  {
346  // Maps are unordered, hash maps; can't just iterate in tandem and
347  // compare.
348  if (map1.size() != map2.size())
349  return false;
350 
351  for (const auto &pair : map2) {
352  auto iter = map1.find(pair.first);
353  if (iter == map1.end() || iter->second != pair.second)
354  return false;
355  }
356 
357  return true;
358  }

Referenced by operator==().

Here is the caller graph for this function: