just use pointer for Array - iterators (on proposal of Matthias R)

This commit is contained in:
Joachim Schoeberl 2021-05-30 18:58:34 +02:00
parent 3258b27410
commit c3984fcc5b

View File

@ -613,8 +613,10 @@ namespace ngcore
return Pos(elem) != ILLEGAL_POSITION;
}
auto begin() const { return ArrayIterator<T,IndexType> (*this, BASE); }
auto end() const { return ArrayIterator<T,IndexType> (*this, size+BASE); }
//auto begin() const { return ArrayIterator<T,IndexType> (*this, BASE); }
// auto end() const { return ArrayIterator<T,IndexType> (*this, size+BASE); }
auto begin() const { return data; }
auto end() const { return data+Size(); }
};
template <typename T>