std-indices: Use forward iterator tag to align with the implemented operators

This commit is contained in:
Aksel Alpay 2023-07-06 23:57:46 +02:00 committed by GitHub
parent 7d570547ed
commit 288d0cb189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ public:
using value_type = N;
using pointer = const N*;
using reference = const N&;
using iterator_category = std::random_access_iterator_tag;
using iterator_category = std::forward_iterator_tag;
explicit iterator(N _num = 0) : num(_num) {}
iterator& operator++() { num++; return *this; }