diff --git a/libs/util/include/psemek/util/spatial_array.hpp b/libs/util/include/psemek/util/spatial_array.hpp index b15b2fd2..671aa19a 100644 --- a/libs/util/include/psemek/util/spatial_array.hpp +++ b/libs/util/include/psemek/util/spatial_array.hpp @@ -4,7 +4,6 @@ #include #include -#include #include namespace psemek::util @@ -36,6 +35,7 @@ namespace psemek::util void expand(Ix ... index); void clear(); + bool empty() const; T * begin(); T * end(); @@ -200,6 +200,12 @@ namespace psemek::util array_.clear(); } + template + bool spatial_array::empty() const + { + return array_.empty(); + } + template T * spatial_array::begin() {