mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #467 Added CIdentifierList::containsAnyNotIn().
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user