r/cpp • • Jun 17 '26

Function Composition Arc: C++17 -> C++20 -> C++23

For those that may be interested, I took a piece of educational code written years ago that composes an arbitrary number of functions and showed how to evolve it to take advantage of modern C++ features using ranges and functional programming.

https://freshsources.com/code-capsules/composing-functions/

36 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/Weary-Inspector-4297 Jun 17 '26

Fixed. Please have another look and thanks again!