

[ edited 2017-01-08: added performance numbers for gcc at the bottom of the post ]

[ edited 2017-01-14: Perfect forwarding of functions in higher order function ]





Take this somewhat silly traditional C++ code: