ConstIterator Class
Class ConstIterator is declared in class QCborMap.The QCborMap::ConstIterator class provides an STL-style const iterator for QCborMap. More...
This class was introduced in Qt 5.12.
Public Types
typedef | iterator_category |
Detailed Description
QCborMap::ConstIterator allows you to iterate over a QCborMap. If you want to modify the QCborMap as you iterate over it, you must use QCborMap::Iterator instead. It is generally good practice to use QCborMap::ConstIterator, even on a non-const QCborMap, when you don't need to change the QCborMap through the iterator. Const iterators are slightly faster and improve code readability.
You must initialize the iterator using a QCborMap function like QCborMap::begin(), QCborMap::end(), or QCborMap::find() before you can start iterating..
Multiple iterators can be used on the same object. Existing iterators will however become dangling if the object gets modified.
See also QCborMap::Iterator.