Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
None
-
None
-
5
-
dcfab7e28e (qt/qtbase/dev) dcfab7e28e (qt/tqtc-qtbase/dev)
-
Foundation PM Prioritized
Description
QString and QByteArray, unlike all other Qt containers, and unlike std::string, lack the erase(it) function. Currently, the only option to erase a single character in QString is to use erase(it, it + 1), or remove.
Acceptance criteria: The following tests pass for C = QString and C = QByteArray:
C c = "bar"; c.erase(c.begin()); QCOMPARE_EQ(c, "ar"); c.erase(std::prev(c.end())); QCOMPARE_EQ(c, "a");
Attachments
Issue Links
- clones
-
QTBUG-106180 QSet is missing range-erase()
-
- Open
-
- relates to
-
QTBUG-106176 Q(Multi)Hash is missing equal_range()
-
- Open
-