refs #467 Added CIdentifierList::containsAnyNotIn().

This commit is contained in:
Mathew Sutcliffe
2015-09-18 20:45:00 +01:00
parent 7d51ffba5d
commit 9d19e091fe
2 changed files with 8 additions and 0 deletions

View File

@@ -17,4 +17,9 @@ namespace BlackMisc
CIdentifierList::CIdentifierList(const CSequence<BlackMisc::CIdentifier> &other) :
CSequence<BlackMisc::CIdentifier>(other)
{ }
bool CIdentifierList::containsAnyNotIn(const CIdentifierList &other) const
{
return containsBy([&other](const CIdentifier &id) { return ! other.contains(id); });
}
} // namespace

View File

@@ -36,6 +36,9 @@ namespace BlackMisc
//! Construct from a base class object.
CIdentifierList(const CSequence<BlackMisc::CIdentifier> &other);
//! This list contains an identifier which is not contained in other.
bool containsAnyNotIn(const CIdentifierList &other) const;
};
} //namespace