Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

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

  • text

Views are a great addition to C++.

Like
Reply

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.

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories