Cipherd@lemmy.ml to Programmer Humor@lemmy.ml · 7 days agofunctionslemmy.mlimagemessage-square36fedilinkarrow-up1295arrow-down15
arrow-up1290arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@lemmy.ml · 7 days agomessage-square36fedilink
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up4·edit-27 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:
[]{}