ORIGINAL
|
Input iterator for generator range-based operations. More...
#include <coroutines.h>
Public Member Functions | |
iterator & | operator++ () |
Advances iterator to next value. | |
TYPE | operator* () |
Dereferences iterator to get current value. | |
bool | operator!= (const iterator &other) const |
Checks iterator inequality. | |
bool | operator== (const iterator &other) const |
Checks iterator equality. | |
Public Attributes | |
friend | coroutine |
Input iterator for generator range-based operations.
Provides input iterator interface for using generator with range-based for loops and STL algorithms.
Iterator invalidation:
bool original::coroutine::generator< TYPE >::iterator::operator!= | ( | const iterator & | other | ) | const |
Checks iterator inequality.
other | Iterator to compare with |
TYPE original::coroutine::generator< TYPE >::iterator::operator* | ( | ) |
Dereferences iterator to get current value.
nullPointerError | if dereferencing end iterator |
original::coroutine::generator< TYPE >::iterator & original::coroutine::generator< TYPE >::iterator::operator++ | ( | ) |
Advances iterator to next value.
bool original::coroutine::generator< TYPE >::iterator::operator== | ( | const iterator & | other | ) | const |
Checks iterator equality.
other | Iterator to compare with |