JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
Loading...
Searching...
No Matches
jh::ranges::zip_sentinel< Sentinels > Struct Template Referencefinal

Sentinel type for jh::ranges::zip_view. More...

#include <jh/ranges/zip_view.h>

Public Attributes

std::tuple< Sentinels... > ends
 Tuple of underlying range end iterators.

Detailed Description

template<typename... Sentinels>
struct jh::ranges::zip_sentinel< Sentinels >

Sentinel type for jh::ranges::zip_view.

zip_sentinel represents the logical end of a jh::ranges::zip_view. It holds a tuple of end iterators (Sentinels...) corresponding to the underlying ranges being zipped together.

During iteration, zip_iterator compares itself against a zip_sentinel to determine termination. Iteration stops when any of the underlying iterators equals its corresponding sentinel — ensuring short-circuit termination on the shortest range.

Template Parameters
SentinelsThe sentinel types associated with the zipped ranges.
See also
jh::ranges::zip_iterator
jh::ranges::zip_view

The documentation for this struct was generated from the following file: