folly::coro::Generator::iterator

Input iterator over the values produced by the generator.

Synopsis

Declared in <folly/coro/Generator.h>

class iterator;

Type Aliases

NameDescription
difference_type The type used to represent distance between iterators.
iterator_category The iterator category (input iterator).
pointer The pointer type returned by operator->.
reference The reference type returned when dereferencing the iterator.
value_type The element value type, with references removed.

Member Functions

NameDescription
iterator [constructor]Constructors
operator* Accesses the current element.
operator++ Increment operators
operator-> Accesses the current element through a pointer.
operator== Compares two iterators for equality.
operator!= Compares two iterators for inequality.