diff --git a/Base/Types/VectorWC.h b/Base/Types/VectorWC.h index ff50130de8d2b556fe81e5c7fc02e6bcc787ca89..e2746542a2915d720a54dd5fd8ad2923f6bde345 100644 --- a/Base/Types/VectorWC.h +++ b/Base/Types/VectorWC.h @@ -83,6 +83,14 @@ public: m_current_index = i; } size_t currentIndex() const { return m_current_index; } + const T* currentItem() const + { + return m_current_index < super::size() ? super::at(m_current_index) : (T*)nullptr; + } + T* currentItem() + { + return m_current_index < super::size() ? super::at(m_current_index) : (T*)nullptr; + } private: void update_current()