Daily bit(e) of C++ | projections in C++20 range algorithms
Daily bit(e) of C++ #141, Projection support in C++20 range algorithm variants.
Support for projections is one of the improvements introduced with the C++20 range versions of standard algorithms.
Projections are applied before elements are passed to the corresponding invocable.
Algorithms that operate on multiple source ranges provide a separate projection for each range.
Note that taking an address of standard functions (including members) is undefined behaviour.