Class Subspace :: sus :: iter :: Flatten

template <class EachIter, class InnerSizedIter>
class Flatten final
{ ... };

An iterator that flattens an iterator of iterable types into an iterator of those iterable types' items.

In other words, this type maps Iterator[Iterable[T]] into Iterator[T].

This type is returned from Iterator::flatten().

Static Methods

Flatten(Flatten<EachIter, InnerSizedIter>&&)

Methods

auto clone() const -> Flatten<EachIter, InnerSizedIter>
requires
sus::mem::Clone<InnerSizedIter>
sus::mem::Clone<EachIter>
auto next() -> Option<sus::iter::Flatten::Item>
auto next_back() -> Option<sus::iter::Flatten::Item>
requires
sus::iter::DoubleEndedIterator<InnerSizedIter, typename InnerSizedIter::Item>
sus::iter::DoubleEndedIterator<EachIter, Item>
auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

Operators

auto operator=(Flatten<EachIter, InnerSizedIter>&&) -> Flatten<EachIter, InnerSizedIter>&