Cipherd@lemmy.ml to Programmer Humor@lemmy.ml · 2 days agofunctionslemmy.mlexternal-linkmessage-square35fedilinkarrow-up1288arrow-down16
arrow-up1282arrow-down1external-linkfunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@lemmy.ml · 2 days agomessage-square35fedilink
minus-squaredavel@lemmy.mllinkfedilinkEnglisharrow-up4·edit-22 days agoHuh, I haven’t looked at C++ in decades, and I didn’t know they’d added lambda functions/expressions, in C++11. Apparently you can shorten it further: []{}
C++:
[](){}Huh, I haven’t looked at C++ in decades, and I didn’t know they’d added lambda functions/expressions, in C++11. Apparently you can shorten it further:
[]{}