mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Fix iterators maybe
This commit is contained in:
parent
487f05c90a
commit
54d61e0bd3
@ -71,10 +71,10 @@ template <typename T, size_t N> class VecBase {
|
||||
const T &_at(size_t index) const { return _c.at(index); }
|
||||
T &_at(size_t index) { return _c.at(index); }
|
||||
|
||||
auto _begin() { return &_c[0]; }
|
||||
auto _begin() const { return &_c[0]; }
|
||||
auto _end() { return &_c[N]; }
|
||||
auto _end() const { return &_c[N]; }
|
||||
auto _begin() { return &(*_c.begin()); }
|
||||
auto _begin() const { return &(*_c.begin()); }
|
||||
auto _end() { return &(*(_c.begin() + N)); }
|
||||
auto _end() const { return &(*(_c.begin() + N)); }
|
||||
|
||||
private:
|
||||
std::array<T, N> _c;
|
||||
|
Loading…
Reference in New Issue
Block a user