const_iterator 类

class QList ::const_iterator

Provides an STL-style const iterator for QList and QStack . 更多...

详细描述

QList provides both STL 样式迭代器 and Java 风格迭代器 .

警告: Iterators on implicitly shared containers do not work exactly like STL-iterators. You should avoid copying a container while iterators are active on that container. For more information, read 隐式共享迭代器问题 .

警告: Iterators are invalidated when QList is modified. Consider that all iterators are invalidated by default. Exceptions to this rule are explicitly documented.

另请参阅 QList::constBegin (), QList::constEnd (), QList::iterator ,和 QListIterator .