diff options
Diffstat (limited to 'doc/man/man3/tqmapiterator.3qt')
-rw-r--r-- | doc/man/man3/tqmapiterator.3qt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man/man3/tqmapiterator.3qt b/doc/man/man3/tqmapiterator.3qt index fe3f39cd3..f7b7ee8ab 100644 --- a/doc/man/man3/tqmapiterator.3qt +++ b/doc/man/man3/tqmapiterator.3qt @@ -73,7 +73,7 @@ The TQMapIterator class provides an iterator for TQMap. .PP You cannot create an iterator by yourself. Instead, you must ask a map to give you one. An iterator is as big as a pointer; on 32-bit machines that means 4 bytes, on 64-bit machines, 8 bytes. That makes copying iterators very fast. Iterators behave in a similar way to pointers, and they are almost as fast as pointers. See the TQMap example. .PP -TQMap is highly optimized for performance and memory usage, but the trade-off is that you must be more careful. The only way to traverse a map is to use iterators. TQMap does not know about its iterators, and the iterators don't even know to which map they belong. That makes things fast but a bit dangerous because it is up to you to make sure that the iterators you are using are still valid. QDictIterator will be able to give warnings, whereas TQMapIterator may end up in an undefined state. +TQMap is highly optimized for performance and memory usage, but the trade-off is that you must be more careful. The only way to traverse a map is to use iterators. TQMap does not know about its iterators, and the iterators don't even know to which map they belong. That makes things fast but a bit dangerous because it is up to you to make sure that the iterators you are using are still valid. TQDictIterator will be able to give warnings, whereas TQMapIterator may end up in an undefined state. .PP For every Iterator there is also a ConstIterator. You must use the ConstIterator to access a TQMap in a const environment or if the reference or pointer to the map is itself const. Its semantics are the same, but it only returns const references to the item it points to. .PP |