|
emlabcpp
modern opinionated embedded C++ library
|
numeric iterator - iterator over numbers (which are calculated on the fly) Value of type T is stored internally and incremented as the iterator is moved forward/backward More...
#include <numeric.h>
Inheritance diagram for emlabcpp::iterators::numeric_iterator< T >:
Collaboration diagram for emlabcpp::iterators::numeric_iterator< T >:Public Member Functions | |
| constexpr | numeric_iterator (T val) |
| Initializes iterator to value val. More... | |
| constexpr T & | operator* () |
| constexpr T const & | operator* () const |
| constexpr numeric_iterator & | operator+= (std::ptrdiff_t offset) |
| constexpr numeric_iterator & | operator-= (std::ptrdiff_t offset) |
| constexpr auto | operator<=> (numeric_iterator< T > const &other) const |
| constexpr bool | operator== (numeric_iterator< T > const &other) const |
| constexpr std::ptrdiff_t | operator- (numeric_iterator const &other) const |
numeric iterator - iterator over numbers (which are calculated on the fly) Value of type T is stored internally and incremented as the iterator is moved forward/backward
T has to be any type for which operators +=, <, ++ and conversion to std::ptrdiff_t are defined.
|
inlineexplicitconstexpr |
Initializes iterator to value val.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |