-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
-
5
-
Foundation Sprint 73, Foundation Sprint 74, Foundation Sprint 76, Foundation Sprint 77, Foundation Sprint 78, Foundations Sprint 79
See epic for more details.
Acceptance criteria:
- QList has an assign() overload set following std::vector's (https://en.cppreference.com/w/cpp/container/vector/assign), except the C++20 constexpr, and using QList::parameter_type instead of const T&.
- For a QList that is not shared and has sufficient capacity() to hold the result of the operation, these functions do not allocate additional memory.
- Otherwise, equivalent to *this = QList(~~~args~~~).
- blocks
-
QTBUG-106201 Port Qt code to new container assign() methods
-
- Open
-
| For Gerrit Dashboard: QTBUG-106196 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 470740,20 | QList: add STL-style assign() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 477042,5 | QList: re-use the prepend buffer, if any, on assign() | 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 |
| 497117,11 | QArrayDataPointer: remove Q_CHECK_PTR in assign(it, it) again | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 502531,2 | QArrayDataPointer: remove Q_CHECK_PTR in assign(it, it) again | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |