Skip to content

Commit

Permalink
Units/Map: added an empty() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Sep 4, 2017
1 parent 9efe229 commit 23e6863
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/units/map.hpp
Expand Up @@ -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);

/**
Expand Down

0 comments on commit 23e6863

Please sign in to comment.