Marek Knápek@programming.dev to Programming@programming.dev · 1 year agoThe Little Things: The Missing Performance in std::vectorcodingnest.comexternal-linkmessage-square11fedilinkarrow-up156arrow-down12 cross-posted to: cpp@programming.dev
arrow-up154arrow-down1external-linkThe Little Things: The Missing Performance in std::vectorcodingnest.comMarek Knápek@programming.dev to Programming@programming.dev · 1 year agomessage-square11fedilink cross-posted to: cpp@programming.dev
minus-squarekornel@programming.devlinkfedilinkarrow-up3·1 year agoOnly signed overflow. size_t is unsigned.
minus-squarerobinm@programming.devlinkfedilinkarrow-up1·edit-21 year agoThat’s totally right but I thought you were talking about signed numbers since you said “integer overflow”. I forgot that len is usually unsigned in C++.
Only signed overflow. size_t is unsigned.
That’s totally right but I thought you were talking about signed numbers since you said “integer overflow”. I forgot that
len
is usually unsigned in C++.