Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
5
-
7cbdc8abb (dev), 87e90a265 (dev), 8712e35ae (dev)
-
Foundation Sprint 72, Foundation Sprint 73, Foundation Sprint 74, Foundation Sprint 75
Description
See epic for more details.
Acceptance criteria:
- QVLA has an assign() overload set following std::vector's (https://en.cppreference.com/w/cpp/container/vector/assign), except for the C++20 constexpr
- For a QVLA that has sufficient capacity() to hold the result of the operation, these functions do not allocate additional memory.
- All functions are strongly exception safe if value_type copy construction doesn't throw.
Attachments
For Gerrit Dashboard: QTBUG-106200 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
450079,13 | QVarLengthArray: add STL-style assign() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
474923,7 | QVarLengthArray: simplify / optimize assign(It, It) | dev | qt/qtbase | Status: MERGED | +2 | 0 |
477551,3 | QVarLengthArray/QList: make assign() return a reference to *this | dev | qt/qtbase | Status: MERGED | +2 | 0 |