From 23e68633dac026324c48573d21553e3ef508f261 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 5 Sep 2017 06:03:48 +1100 Subject: [PATCH] Units/Map: added an empty() function --- src/units/map.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/units/map.hpp b/src/units/map.hpp index a311bf81d7ad..3a136a6c525a 100644 --- a/src/units/map.hpp +++ b/src/units/map.hpp @@ -313,6 +313,8 @@ class unit_map { size_t size() const { return lmap_.size(); } size_t num_iters() const ; + bool empty() const { return lmap_.empty(); } + void clear(bool force = false); /**