|
Flow
Documentation for the Flow C++ Library
|
An iterator that can iterate through a range of integer. Useful when the search space is too big to fit into a container. More...
#include <flow_integral_iterator.h>
Public Types | |
| using | value_type = T |
| using | difference_type = std::ptrdiff_t |
| using | reference = T |
| using | pointer = void |
| using | iterator_category = std::random_access_iterator_tag |
Public Member Functions | |
| constexpr | IntegralIterator (T value) noexcept |
| constexpr reference | operator* () const noexcept |
| constexpr IntegralIterator & | operator++ () noexcept |
| constexpr IntegralIterator | operator++ (int) noexcept |
| constexpr IntegralIterator & | operator-- () noexcept |
| constexpr IntegralIterator | operator-- (int) noexcept |
| constexpr IntegralIterator & | operator+= (difference_type n) noexcept |
| constexpr IntegralIterator & | operator-= (difference_type n) noexcept |
| constexpr reference | operator[] (difference_type n) const noexcept |
| constexpr difference_type | operator- (const IntegralIterator &rhs) const noexcept |
| constexpr auto | operator<=> (const IntegralIterator &) const =default |
Private Attributes | |
| T | value_ |
Friends | |
| void | swap (IntegralIterator &lhs, IntegralIterator &rhs) noexcept |
An iterator that can iterate through a range of integer. Useful when the search space is too big to fit into a container.
Definition at line 10 of file flow_integral_iterator.h.
| using flow::IntegralIterator< T >::difference_type = std::ptrdiff_t |
Definition at line 15 of file flow_integral_iterator.h.
| using flow::IntegralIterator< T >::iterator_category = std::random_access_iterator_tag |
Definition at line 18 of file flow_integral_iterator.h.
| using flow::IntegralIterator< T >::pointer = void |
Definition at line 17 of file flow_integral_iterator.h.
| using flow::IntegralIterator< T >::reference = T |
Definition at line 16 of file flow_integral_iterator.h.
| using flow::IntegralIterator< T >::value_type = T |
Definition at line 14 of file flow_integral_iterator.h.
|
inlineexplicitconstexprnoexcept |
Definition at line 20 of file flow_integral_iterator.h.
Referenced by operator++(), operator++(), operator+=(), operator-(), operator--(), operator--(), operator-=(), operator<=>(), and swap.
|
inlineconstexprnoexcept |
Definition at line 22 of file flow_integral_iterator.h.
References value_.
|
inlineconstexprnoexcept |
Definition at line 26 of file flow_integral_iterator.h.
References IntegralIterator(), and value_.
|
inlineconstexprnoexcept |
Definition at line 31 of file flow_integral_iterator.h.
References IntegralIterator().
|
inlineconstexprnoexcept |
Definition at line 48 of file flow_integral_iterator.h.
References IntegralIterator(), and value_.
|
inlineconstexprnoexcept |
Definition at line 62 of file flow_integral_iterator.h.
References IntegralIterator(), and value_.
|
inlineconstexprnoexcept |
Definition at line 37 of file flow_integral_iterator.h.
References IntegralIterator(), and value_.
|
inlineconstexprnoexcept |
Definition at line 42 of file flow_integral_iterator.h.
References IntegralIterator().
|
inlineconstexprnoexcept |
Definition at line 53 of file flow_integral_iterator.h.
References IntegralIterator(), and value_.
|
constexprdefault |
References IntegralIterator().
|
inlineconstexprnoexcept |
|
friend |
Definition at line 68 of file flow_integral_iterator.h.
References IntegralIterator(), and swap.
Referenced by swap.
|
private |
Definition at line 11 of file flow_integral_iterator.h.
Referenced by operator*(), operator++(), operator+=(), operator-(), operator--(), operator-=(), and operator[]().