Zip ranges until every iteratee has been exhausted.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<
    typename T,
    typename U,
    typename... Args>
/* implementation-defined */
zip_longest(
    T&& t,
    U&& u,
    Args&&... args);

Description

The std::optional only contains a value if the iterator has not reached the end.

Return Value

A zip range continuing until every input is exhausted.

Parameters

Name

Description

t

First range to iterate.

u

Second range to iterate.

args

Additional ranges to iterate.

Created with MrDocs