ΒΆtemplate <class ToType, class IntoIter>
inline constexpr ToType from_iter(
    IntoIter&& into_iter) noexcept

Description

Constructs `ToType` from a type that can be turned into an `Iterator` over elements of type `ItemType`. This is the other end of [`Iterator::collect()`](::sus::iter::IteratorBase::collect), and is typically called through calling `collect()` on an iterator. However this function can be preferrable for some readers, especially in generic template code.

Declared at: sus/iter/from_iterator.h:56

Templates

ToType
IntoIter

Parameters

IntoIter&& into_iter