Original link: Speeding up C++ code with template lambdas / Daniel Lemire blog.
C++ is not C++ 98 any more. :-)