template<typename T>
py::RangeIterator struct

Iterator for range-based sequences.

Template parameters
T The value type generated by the iterator

Provides iterator functionality for generating sequential values, similar to Python's range() function.

Public functions

auto operator!=(const RangeIterator& other) const -> bool -> auto constexpr
Not equal to.
auto operator==(const RangeIterator& other) const -> bool -> auto constexpr
Equal to operator.
auto operator*() const -> const_reference -> CONSTEXPR14 auto
auto operator++() -> RangeIterator & -> CONSTEXPR14 auto
Pre-increment operator.
auto operator++(int) -> RangeIterator -> CONSTEXPR14 auto
Post-increment operator.

Function documentation

template<typename T>
auto py::RangeIterator<T>::operator!=(const RangeIterator& other) const -> bool constexpr

Not equal to.

Parameters
other in other is a RangeIterator object that represents another iterator.
Returns The operator!= function returns a boolean value indicating whether the two iterators are not equal.

The operator!= function checks if the current iterator is not equal to another iterator.

template<typename T>
auto py::RangeIterator<T>::operator==(const RangeIterator& other) const -> bool constexpr

Equal to operator.

Parameters
other in other is a RangeIterator object that is being compared to the current iterator.
Returns The operator== function returns a boolean value indicating whether the two iterators are equal.

The operator== function checks if the current iterator is equal to another iterator.

template<typename T>
CONSTEXPR14 auto py::RangeIterator<T>::operator*() const -> const_reference

Returns The operator*() function is returning a const_reference, which is the value that the iterator points to.

The operator*() function is used to dereference the iterator and return the value it points to.

template<typename T>
CONSTEXPR14 auto py::RangeIterator<T>::operator++() -> RangeIterator &

Pre-increment operator.

Returns RangeIterator& Reference to this iterator

Increments the iterator to the next element in the range.

template<typename T>
CONSTEXPR14 auto py::RangeIterator<T>::operator++(int) -> RangeIterator

Post-increment operator.

Returns RangeIterator Copy of this iterator before increment

Increments the iterator to the next element in the range, returning a copy of the iterator before the increment.