Details
-
User Story
-
Resolution: Done
-
P2: Important
-
6.0.0, 6.0
-
None
-
-
f19fbbdb2f5a3dbf3bac7cdbb4f7e8efe34f1e0d
Description
There are no methods to construct elements in-place, such as "emplace" and "emplace_back".
The steps (sub tasks) for this user story should be:
- Investigate if this is possible and makes sense (If you have already done this investigation, feel free to share!)
- Implement "emplace"-like method to create an element at a given position in a vector (std::vector::emplace)
- Implement "emplace_back"-like method to create an element at the end of a vector (std::vector::emplace_back)
- Add unit tests and documentation for all cases
Attachments
For Gerrit Dashboard: QTBUG-80293 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
283929,7 | QVector: implement methods for adding new elements constructed in place | dev | qt/qtbase | Status: MERGED | +2 | 0 |