Wednesday
Room 5
11:40 - 12:40
(UTC+02)
Talk (60 min)
Creating Composable Callables in Contemporary C++
C++ took a huge step in the direction of composability when Ranges were introduced in C++20. C++23 improved it, and C++26 looks to improve it even more.
C++
Technique
However, function objects, sometimes referred to as Niebloids, after Eric Niebler who pioneered their use in the Ranges library, are still few and rarely composable. With function objects we can send functions, and even complete overload sets, as arguments to other functions, return them, and combine them.
I will show you compositions I want, how to write them and with
gradual scope creep end up with a very powerful set of utilities that are easy to use and require surprisingly little code when using recent additions to the C++ language.
