MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/wdlvla/printhello_world/iim0vtk
r/ProgrammerHumor • u/a-slice-of-toast • Aug 01 '22
5.7k comments sorted by
View all comments
Show parent comments
11
It's defining an empty lambda and calling it. Captures nothing (the square braces), takes no arguments (first parentheses), has an empty body (curly braces), and is invoked (second parentheses).
2 u/CanadaPlus101 Aug 02 '22 TIL C++ has lambdas.
2
TIL C++ has lambdas.
11
u/Alphard428 Aug 02 '22
It's defining an empty lambda and calling it. Captures nothing (the square braces), takes no arguments (first parentheses), has an empty body (curly braces), and is invoked (second parentheses).