Porting Guide: Mention that also QSet is affected by stability of references

QSet is internally implemented by a QHash. Therefore the change in
reference stability affects QSet, too.

Pick-to: 6.1 6.2
Change-Id: If1879d5a027211bca0beeff16ffbc77f2f4fce26
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Kai Köhne 2021-06-14 15:43:27 +02:00
parent b26988d0b5
commit c2c15666b7

View File

@ -70,12 +70,12 @@
\section3 Stability of References
The implementation of QHash and QMultiHash in Qt 6 got changed from
The implementation of QHash, QMultiHash and QSet in Qt 6 got changed from
a node based approach to a two stage lookup table. This design allows
to keep the memory overhead of a hash instance very small, while
at the same time giving good performance.
One behavioral change to note is that the new QHash implementation
One behavioral change to note is that the new implementation
will not provide stable references to elements in the hash when the
table needs to grow, or when entries are removed. Applications that
rely on such stability might now run into undefined behavior.