4 ms·
This does not conflict with what I or the OP wrote; you're mixing up the vector and its contents. Moving from a vector can invalidate `data()`, yet references a
by zvrba 7y ago
This does not conflict with what I or the OP wrote; you're mixing up the vector and its contents. Moving from a vector can invalidate `data()`, yet references and iterators to its previous contents remain valid.
- steerablesafe 7y agoWell, kccqzy probably meant the pointer returned by data remaining valid, not calling data() again on a moved-from object.