Š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 std::ranges::fold_left_with_iter and std::ranges::fold_left_first_with_iter are alternative versions of the fold_left algorithms that additionally return the computed end iterator. This comes in handy in cases where the range is terminated using a sentinel. The computed end iterator can then be re-used and doesn't have to be re-calculated. Compiler Explorer link: https://lnkd.in/edNsZzvv #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories