mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 14:43:33 +08:00
Map<>, TransferBufferManager - isEmpty() calls for runtime checks
This commit is contained in:
@@ -261,6 +261,8 @@ public:
|
||||
removeWhere(YesPredicate());
|
||||
}
|
||||
|
||||
bool isEmpty() const { return (getNumStaticPairs() == 0) && (getNumDynamicPairs() == 0); }
|
||||
|
||||
/// For testing
|
||||
unsigned int getNumStaticPairs() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user