diff options
author | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2009-09-25 12:10:30 (GMT) |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2009-09-25 12:26:13 (GMT) |
commit | 7c663d00eeea346813bb7ebcc36ac042b03e7688 (patch) | |
tree | 54b6400632b49a8d141dc8b624695d9aa8b45a02 /doc | |
parent | fcee72bcff0f7ebda01f990d772e27f4ab6ea73f (diff) | |
download | Qt-7c663d00eeea346813bb7ebcc36ac042b03e7688.zip Qt-7c663d00eeea346813bb7ebcc36ac042b03e7688.tar.gz Qt-7c663d00eeea346813bb7ebcc36ac042b03e7688.tar.bz2 |
Doc: Document that iterators become invalid when the container is modified.
Implicit sharing makes this a bit of a trap, since the iterator continues
to function, but only on the data in the copies.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/frameworks-technologies/containers.qdoc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/frameworks-technologies/containers.qdoc b/doc/src/frameworks-technologies/containers.qdoc index d29ca0e..0ac9732 100644 --- a/doc/src/frameworks-technologies/containers.qdoc +++ b/doc/src/frameworks-technologies/containers.qdoc @@ -267,7 +267,10 @@ Iterators provide a uniform means to access items in a container. Qt's container classes provide two types of iterators: Java-style - iterators and STL-style iterators. + iterators and STL-style iterators. Iterators of both types are + invalidated when the data in the container is modified or detached + from \l{Implicit Sharing}{implicitly shared copies} due to a call + to a non-const member function. \section2 Java-Style Iterators |