Function sequant::bits::sieve

Function Documentation

constexpr auto sequant::bits::sieve(std::ranges::viewable_range auto &&rng)

Creates a view adaptor that selects elements from the input range based on indices. This function returns a closure object that, when applied to a range of indices, maps those indices to elements in the source range rng.

Parameters:

rng – The source range from which elements are selected.

Returns:

A view adaptor that transforms indices into elements from rng.