Marek Knápek@programming.dev to Programming@programming.dev · 2 年前The Little Things: The Missing Performance in std::vectorcodingnest.comexternal-linkmessage-square11linkfedilinkarrow-up149arrow-down12 cross-posted to: cpp@programming.dev
arrow-up147arrow-down1external-linkThe Little Things: The Missing Performance in std::vectorcodingnest.comMarek Knápek@programming.dev to Programming@programming.dev · 2 年前message-square11linkfedilink cross-posted to: cpp@programming.dev
minus-squarerobinm@programming.devlinkfedilinkarrow-up1·2 年前emplace controls the construction of the object added to the collection. It’s also important but not related to the problem exposed by OP which is “how to remove the capacity check when we know statically that there is enough space”.
emplace
controls the construction of the object added to the collection. It’s also important but not related to the problem exposed by OP which is “how to remove the capacity check when we know statically that there is enough space”.