diff --git a/common/include/varutil.h b/common/include/varutil.h index 3f5691692..f1e4fa520 100644 --- a/common/include/varutil.h +++ b/common/include/varutil.h @@ -25,6 +25,10 @@ public: unsigned count() const { return m_count; } const char *string(std::size_t i) const { return this->operator[](i); } using array_t::begin; + auto end() const + { + return std::next(begin(), m_count); + } private: unsigned m_count; };