|
TRIQS/itertools 2.0.0
C++ range library
|
#include <itertools/range.hpp>
Const iterator type for itertools::range.
Public Types | |
| using | difference_type = std::ptrdiff_t |
| Difference type. | |
| using | iterator_category = std::random_access_iterator_tag |
| Iterator category. | |
| using | pointer = value_type * |
| Pointer type. | |
| using | reference = value_type const & |
| Reference type. | |
| using | value_type = long |
| Value type. | |
Public Member Functions | |
| long | operator* () const noexcept |
| Dereference operator. | |
| const_iterator | operator+ (difference_type n) const noexcept |
| Addition operator for an iterator and an integer. | |
| const_iterator & | operator++ () noexcept |
| Pre-increment operator increments the current value by the step size. | |
| const_iterator | operator++ (int) noexcept |
| Post-increment operator increments the current value by the step size. | |
| const_iterator & | operator+= (difference_type n) noexcept |
| Addition assignment operator. | |
| difference_type | operator- (const_iterator const &rhs) const noexcept |
| Get the distance between two iterators. | |
| const_iterator | operator- (difference_type n) const noexcept |
| Subtraction operator for an iterator and an integer. | |
| const_iterator & | operator-- () noexcept |
| Pre-decrement operator decrements the current value by the step size. | |
| const_iterator | operator-- (int) noexcept |
| Post-decrement operator decrements the current value by the step size. | |
| const_iterator & | operator-= (difference_type n) noexcept |
| Subtraction assignment operator. | |
| long | operator-> () const noexcept |
| Member access operator. | |
| std::strong_ordering | operator<=> (const_iterator const &rhs) const noexcept |
| Three-way comparison operator for two iterators. | |
| bool | operator== (const_iterator const &other) const noexcept |
| Equal-to operator for two iterators. | |
| value_type | operator[] (difference_type n) const noexcept |
| Subscript operator. | |
Public Attributes | |
| long | pos |
| Current value. | |
| long | step |
| Step size. | |
Friends | |
| const_iterator | operator+ (difference_type n, const_iterator it) noexcept |
| Addition operator for an integer and an iterator. | |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Three-way comparison operator for two iterators.
| rhs | Right hand side iterator to compare with. |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
friend |