|
| constexpr | integer_range () noexcept=default |
| | Default constructor. More...
|
| |
| constexpr | integer_range (T e) noexcept |
| | Initialization specifying the past the end integer value. More...
|
| |
| constexpr | integer_range (T b, T e) noexcept |
| | Initialization specifying the begin and past the end integer values. More...
|
| |
| constexpr auto | empty () const noexcept |
| | Indicates that the range is empty. More...
|
| |
| constexpr auto | size () const noexcept |
| | Returns the number of iteration steps in this range. More...
|
| |
|
constexpr auto | begin () const noexcept -> iterator |
| | Returns the iterator to the start of the range.
|
| |
|
constexpr auto | end () const noexcept -> iterator |
| | Returns the iterator past the end of the range.
|
| |
template<typename T>
class eagine::integer_range< T >
Integer range type template usable in range-based loops.
Instances of this class can be used as the range in range-based for loops instead of using, comparing and incrementing a for loop variable.