diff --git a/array/sarray.hpp b/array/sarray.hpp index 24dd972c..4602234d 100644 --- a/array/sarray.hpp +++ b/array/sarray.hpp @@ -99,6 +99,14 @@ namespace cruft { return m_size; } + + //--------------------------------------------------------------------- + bool empty (void) const + { + return m_size == 0; + } + + //--------------------------------------------------------------------- T& operator[] (std::size_t i)& { return m_data.objects[i]; } const T& operator[] (std::size_t i) const& { return m_data.objects[i]; }