The C++20 std::views::drop and std::views::drop_while are views that omit leading elements of the underlying range. std::views::drop will omit the specified number of leading elements. std::views::drop_while will omit the leading elements that satisfy the provided predicate. Compiler Explorer link: https://lnkd.in/eW8pGGfs #cpp #cplusplus #coding #programming #dailybiteofcpp
Really enjoying views but I would like to write my own functions that you can pipe. I'm using std::views::transform a lot when it could be much cleaner.
Views are a great addition to C++.