Theoretica
A C++ numerical and automatic mathematical library
|
for vectors. More...
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = vector_element_t< Vector > |
using | pointer = value_type * |
using | reference = value_type & |
Public Member Functions | |
vec_iterator (Vector &vector, size_t index) | |
Construct the iterator from a pointer to the elements and a starting index. | |
ReturnType | operator* () |
Dereference the iterator to get the current element. | |
vec_iterator & | operator++ () |
Move to the next element in the vector. | |
size_t | index () |
Move to the previous element in the vector. More... | |
bool | operator== (const vec_iterator &other) const |
Comparison operators. | |
bool | operator!= (const vec_iterator &other) const |
for vectors.
|
inline |
Move to the previous element in the vector.
Get the current index