Map<>, TransferBufferManager - isEmpty() calls for runtime checks

This commit is contained in:
Pavel Kirienko
2014-02-11 19:50:15 +04:00
parent fe2126536d
commit bb215d3c15
2 changed files with 7 additions and 3 deletions
@@ -261,6 +261,8 @@ public:
removeWhere(YesPredicate());
}
bool isEmpty() const { return (getNumStaticPairs() == 0) && (getNumDynamicPairs() == 0); }
/// For testing
unsigned int getNumStaticPairs() const
{