hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

Šimon Tóth

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: compiler-explorer.com/z/rsxK66