Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"C++23’s New Fold Algorithms" by Sy Brand

21 views
Skip to first unread message

Lynn McGuire

unread,
Apr 17, 2023, 5:37:00 PM4/17/23
to
"C++23’s New Fold Algorithms" by Sy Brand
https://devblogs.microsoft.com/cppblog/cpp23s-new-fold-algorithms/

"C++20 added new versions of the standard library algorithms which take
ranges as their first argument rather than iterator pairs, alongside
other improvements. However, key algorithms like std::accumulate were
not updated. This has been done in C++23, with the new
std::ranges::fold_* family of algorithms. The standards paper for this
is P2322 and was written by Barry Revzin. It been implemented in Visual
Studio 2022 version 17.5. In this post I’ll explain the benefits of the
new “rangified” algorithms, talk you through the new C++23 additions,
and explore some of the design space for fold algorithms in C++."

Lynn

0 new messages