The TryEmplaceResult class is used to represent the result of a tryEmplace() operation. More...
This struct was introduced in Qt 6.9.
The TryEmplaceResult class is used in QHash to represent the result of a tryEmplace() operation. It holds an iterator to the newly created item, or to the pre-existing item that prevented the insertion, and a boolean, inserted, denoting whether the insertion took place.
See also QHash and QHash::tryEmplace().
This value is false if there was already an entry with the same key.
Holds the iterator to the newly inserted element, or the element that prevented the insertion.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qhash-tryemplaceresult.html