C++20 Ranges algorithms have an excellent feature called “Projection”. In short, it’s a callable applied on each range element before further processing. In this article, I’ll show you a couple more examples of this handy feature.
Intro According to the C++20 Standard: [defns.projection]:
projection: transformation that an algorithm applies before inspecting the values of elements