qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agoWorse than single letterslemmy.worldexternal-linkmessage-square9linkfedilinkarrow-up13arrow-down10
arrow-up13arrow-down1external-linkWorse than single letterslemmy.worldqaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agomessage-square9linkfedilink
minus-squareHal_Canary@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·2 years 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.