How does c++ manage to win here? I'm not doubting, just curious
https://stackoverflow.com/questions/18002087/qsort-vs-stdsor...
Or the CTL is a header only STL for C, which inlines the sort function and the comparator. And because of the C++ bloat and indirect calls the C version is faster.
Inlining with macros == constexpr with templates.
You can decide which syntax you prefer.