With respect to the following code:
Код: Выделить всё
static constexpr auto v = {0, 1, 2, 3, 4, 5};
for (int n : v | std::views::drop_while([](int i) { return i < 3; }))
std::cout
Источник: [url]https://stackoverflow.com/questions/78132484/why-am-i-not-able-to-filter-properly-with-drop-while[/url]
Мобильная версия