Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
5.9.9, 5.12.8, 5.13.2, 5.14.2, 5.15.0, 6.0.4, 6.1.3, 6.2.1
-
None
-
8
-
7670db3146 (qt/qtbase/dev) 7670db3146 (qt/tqtc-qtbase/dev) 7670db3146 (qt/tqtc-qtbase/6.3)
-
Team 2 Foundation_Sprint 47, Team 2 Foundation_Sprint 48
Description
The full implementation of QVarLengthArray is templated on Prealloc. This makes two QVarLengthArrays of differing Prealloc completely independent types, and all functions are instantiated anew.
The implementation should split off the Prealloc-dependent parts (the internal buffer and the Prealloc contant itself) from the rest, such that QVLA<T>s with different Preallocs don't generate duplicate executable code.
The 6.0 is the only opportunity we have for this, until Qt 7.