Multiset<>

This commit is contained in:
Pavel Kirienko
2015-05-15 15:29:31 +03:00
parent 7492e9fedb
commit ee761eebad
3 changed files with 800 additions and 2 deletions
+5 -2
View File
@@ -137,7 +137,10 @@ protected:
#endif
/// Derived class destructor must call removeAll();
~MapBase() { }
~MapBase()
{
UAVCAN_ASSERT(getSize() == 0);
}
public:
/**
@@ -158,7 +161,7 @@ public:
/**
* Removes entries where the predicate returns true.
* Predicate prototype:
* bool (const Key& key, const Value& value)
* bool (Key& key, Value& value)
*/
template <typename Predicate>
void removeWhere(Predicate predicate);