|
halcheck 1.0
|
An iterator pointing to an integral value. More...
#include <iota.hpp>
Public Types | |
| using | value_type = T |
| The type of value pointed to by this iterator. | |
| using | reference = T |
The return type of operator*. | |
| using | pointer = void |
This type does not support operator->. | |
| using | difference_type = lib::iota_diff_t<T> |
The return type of operator-. | |
| using | iterator_category = std::input_iterator_tag |
| This iterator is an input iterator. | |
Public Member Functions | |
| constexpr | iota_iterator ()=default |
| Constructs a default iota_iterator. | |
| constexpr | iota_iterator (T value) |
| Constructs an iota_iterator pointing to the specified value. | |
| constexpr value_type | operator* () const noexcept |
| Obtains the value pointed to by this iterator. | |
| iota_iterator & | operator++ () |
| Advances this iterator. | |
| iota_iterator & | operator-- () |
| Advances this iterator backwards. | |
| template<typename U = T> | |
| iota_iterator & | operator+= (difference_type n) |
| Advances this iterator by the specified amount. | |
| template<typename U = T> | |
| iota_iterator & | operator+= (difference_type n) |
| Advances this iterator by the specified amount. | |
Private Member Functions | |
| I | operator++ (int) |
| Advances this iterator. | |
| I | operator-- (int) |
| Advances this iterator a step backwards. | |
Friends | |
| class | lib::iterator_interface< iota_iterator > |
| bool | operator== (const iota_iterator &lhs, const iota_iterator &rhs) |
| Determines if two iterators are equal. | |
| difference_type | operator- (const iota_iterator &lhs, const iota_iterator &rhs) |
| Determines the distance between two iterators. | |
An iterator pointing to an integral value.
| T | The type of value to point to. |