Class array_iterator
Synopsis
#include <include/flecs/cpp/util.hpp>
template <typename T>
class array_iterator
Description
No description yet.
Methods
array_iterator | ||
operator!= | ||
operator* | ||
operator++ |
Source
Lines 186-214 in include/flecs/cpp/util.hpp.
template <typename T>
class array_iterator
{
public:
explicit array_iterator(T* value, int index) {
m_value = value;
m_index = index;
}
bool operator!=(array_iterator const& other) const
{
return m_index != other.m_index;
}
T & operator*() const
{
return m_value[m_index];
}
array_iterator& operator++()
{
++m_index;
return *this;
}
private:
T* m_value;
int m_index;
};