Почему я не могу правильно фильтровать с помощью drop_ while?C++

Программы на C++. Форум разработчиков
Гость
Почему я не могу правильно фильтровать с помощью drop_ while?

Сообщение Гость »


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]

Вернуться в «C++»