4 ms·
Good points, I hadn't considered that the implementation of a vector could widely vary. That makes sense.
by hellofunk 11y ago
Good points, I hadn't considered that the implementation of a vector could widely vary. That makes sense.
- vvanders 11y agoYup, the spec is also really vague on if clear() actually releases memory. AFAIK the only "correct" way to actually clear a vector is "vec = std::vector<T>()" with the STL.