|
Py2Cpp 1.6.3; VERSION ${PROJECT_VERSION}
|
Iterator for range-based sequences. More...
#include <range.hpp>
Public Types | |
| using | iterator_category = std::input_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | value_type = T |
| using | pointer = const T * |
| using | reference = const T & |
| using | const_reference = const T & |
| using | key_type = T |
Public Member Functions | |
| constexpr auto | operator!= (const RangeIterator &other) const -> bool |
| Not equal to. | |
| constexpr auto | operator== (const RangeIterator &other) const -> bool |
| Equal to operator. | |
| CONSTEXPR14 auto | operator* () const -> const_reference |
| CONSTEXPR14 auto | operator++ () -> RangeIterator & |
| Pre-increment operator. | |
| CONSTEXPR14 auto | operator++ (int) -> RangeIterator |
| Post-increment operator. | |
Public Attributes | |
| T | i |
Iterator for range-based sequences.
Provides iterator functionality for generating sequential values, similar to Python's range() function.
| T | The value type generated by the iterator |
| using py::RangeIterator< T >::const_reference = const T& |
| using py::RangeIterator< T >::difference_type = std::ptrdiff_t |
| using py::RangeIterator< T >::iterator_category = std::input_iterator_tag |
| using py::RangeIterator< T >::key_type = T |
| using py::RangeIterator< T >::pointer = const T* |
| using py::RangeIterator< T >::reference = const T& |
| using py::RangeIterator< T >::value_type = T |
|
inlineconstexpr |
Not equal to.
The operator!= function checks if the current iterator is not equal to another iterator.
| [in] | other | other is a RangeIterator object that represents another iterator. |
operator!= function returns a boolean value indicating whether the two iterators are not equal.
|
inline |
The operator*() function is used to dereference the iterator and return the value it points to.
operator*() function is returning a const_reference, which is the value that the iterator points to.
|
inline |
Pre-increment operator.
Increments the iterator to the next element in the range.
|
inline |
Post-increment operator.
Increments the iterator to the next element in the range, returning a copy of the iterator before the increment.
|
inlineconstexpr |
Equal to operator.
The operator== function checks if the current iterator is equal to another iterator.
| [in] | other | other is a RangeIterator object that is being compared to the current iterator. |
operator== function returns a boolean value indicating whether the two iterators are equal. | T py::RangeIterator< T >::i |