|
OpenTTD Source 20260614-master-g1baea6b0fb
|
Forward iterator. More...
#include <enum_type.hpp>
Public Types | |
| using | value_type = Tenum |
| C++ specification trait 'value_type' of this Iterator. | |
| using | difference_type = value_type & |
| C++ specification trait 'difference_type' of this Iterator. | |
| using | iterator_category = std::forward_iterator_tag |
| C++ specification trait 'iterator_category' of this Iterator. | |
| using | pointer = void |
| C++ specification trait 'pointer' of this Iterator. | |
| using | reference = void |
| C++ specification trait 'reference' of this Iterator. | |
Public Member Functions | |
| Iterator (Tenum v) | |
| Construct this iterator. | |
| constexpr Tenum | operator* () const |
| Deference operator. | |
| constexpr Iterator & | operator++ () |
| Increment to the next value. | |
| constexpr auto | operator<=> (const Iterator &) const =default |
| Compare with another instance of this iterator. | |
Private Attributes | |
| Tenum | value |
| Current value. | |
Forward iterator.
Definition at line 230 of file enum_type.hpp.
| using EnumRange< Tenum >::Iterator::difference_type = value_type & |
C++ specification trait 'difference_type' of this Iterator.
Definition at line 233 of file enum_type.hpp.
| using EnumRange< Tenum >::Iterator::iterator_category = std::forward_iterator_tag |
C++ specification trait 'iterator_category' of this Iterator.
Definition at line 234 of file enum_type.hpp.
| using EnumRange< Tenum >::Iterator::pointer = void |
C++ specification trait 'pointer' of this Iterator.
Definition at line 235 of file enum_type.hpp.
| using EnumRange< Tenum >::Iterator::reference = void |
C++ specification trait 'reference' of this Iterator.
Definition at line 236 of file enum_type.hpp.
| using EnumRange< Tenum >::Iterator::value_type = Tenum |
C++ specification trait 'value_type' of this Iterator.
Definition at line 232 of file enum_type.hpp.
|
inlineexplicit |
Construct this iterator.
| v | The initial value. |
Definition at line 242 of file enum_type.hpp.
References value.
Referenced by operator++(), and operator<=>().
|
inlineconstexpr |
Deference operator.
Definition at line 248 of file enum_type.hpp.
References value.
Increment to the next value.
Definition at line 257 of file enum_type.hpp.
References Iterator(), to_underlying(), and value.
|
constexprdefault |
Compare with another instance of this iterator.
References Iterator().
|
private |
Current value.
Definition at line 270 of file enum_type.hpp.
Referenced by Iterator(), operator*(), and operator++().