Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.8.0, 5.0.0
-
None
Description
QVector<int> a, b;
a.reserve(1000);
b.append(1);
a += b;
results in calling QVector::realloc(0, 1); essentially destroying the pre-allocation
Attachments
Issue Links
- is replaced by
-
QTBUG-22164 QVector reallocates when appending another vector even when there is enough capacity
- Closed