#pragma once #include namespace cruft::ranges { /// A very simple implementation of std::views::enumerate provided because clang-19 lacks it /// /// clang#19: check me again in clang-20 template requires (std::ranges::input_range) auto enumerate (Rng &&r) { return std::views::zip ( std::views::iota (0), std::forward (r) ); } }