libcoro
1.0
Coroutine support library for C++20
|
iterator for when_each - it always return awaitable reference (future) More...
#include <future_list.h>
Public Member Functions | |
iterator ()=default | |
default construct - note such iterator cannot be used for iterating More... | |
result_future_type & | operator* () const |
retrieve item. Note that result is awaitable reference. You need co_await the result; More... | |
iterator & | operator++ () |
go to next item More... | |
iterator | operator++ (int) |
go to next item More... | |
iterator & | operator-- () |
go to previous item More... | |
iterator | operator-- (int) |
go to previous item More... | |
iterator & | operator+= (std::ptrdiff_t n) |
skip n items More... | |
iterator & | operator-= (std::ptrdiff_t n) |
skip n items More... | |
std::ptrdiff_t | operator- (const iterator &other) const |
difference More... | |
bool | operator== (const iterator &other) const |
comparison More... | |
iterator for when_each - it always return awaitable reference (future)
The iterator is random access iterator. Underlying container is ordered in order of completion. You can access not yet complete item, you only need to co_await on it. Once the item is complete, you can retrieve its value.
Definition at line 193 of file future_list.h.