qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agoWorse than single letterslemmy.worldimagemessage-square34fedilinkarrow-up1316arrow-down116
arrow-up1300arrow-down1imageWorse than single letterslemmy.worldqaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square34fedilink
minus-squareHal_Canary@lemmy.sdf.orglinkfedilinkEnglisharrow-up4·1 year agoI came here to say this. Declare result in the first line of the function and return result is the last line. In C++, this is a big hint to the compiler that you want return value optimization to kick in.
I came here to say this.
Declare
result
in the first line of the function andreturn result
is the last line. In C++, this is a big hint to the compiler that you want return value optimization to kick in.