Hacker News new | ask | show | jobs
by gpderetta 2309 days ago
returning, moving, swapping a small vector would break any pointer to an element. That's a big deal. Interior pointers are used all the time (that's, more than performance, the primary reason that reserve exist).