Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
5
-
d9ad2251d (dev)
-
Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121
Description
Our best functionality currently to insert-if-not-already-exists and then know about it is something along the lines of
oldsize = hash.size();
auto &obj = hash[key];
if (oldsize != hash.size())
obj = ...;
This is because none of our current functionality returns any indication whether there was a new insertion or not. With tryEmplace/try_emplace we can get this.
Attachments
Issue Links
- resulted in
-
QTBUG-130259 QHash: Find and port various code from insert-if-not-already-exists to use try_emplace
-
- In Progress
-