raubarno to Programmer Humor@lemmy.ml • edit-29 months agoC Compilers be likelemmy.mlimagemessage-square26fedilinkarrow-up1380arrow-down130file-text
arrow-up1350arrow-down1imageC Compilers be likelemmy.mlraubarno to Programmer Humor@lemmy.ml • edit-29 months agomessage-square26fedilinkfile-text
minus-squareSonotsugipaalinkfedilinkEnglish2•9 months agoIs it any different from the standard decltype?
minus-square@ale@lemmy.worldlinkfedilink4•9 months agoGood question. I didn't know about decltype. I guess they are slightly different in that decltype will also produce a type reference. Typeof just produces the type, even if you call on a reference.
gcc has typeof, which is pretty neat.
Is it any different from the standard
decltype
?Good question. I didn't know about decltype. I guess they are slightly different in that decltype will also produce a type reference. Typeof just produces the type, even if you call on a reference.