llvm::zip_first

Zip ranges assuming the first is the shortest.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

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

Description

Iteration continues until the end of the first iteratee is reached. In builds with assertions on, we check that the assumption about the first iteratee being the shortest holds.

Return Value

A zip range stopping at the end of the first input.

Parameters

NameDescription
tFirst (shortest) range to iterate.
uSecond range to iterate.
argsAdditional ranges to iterate.