QList::iterator Class

class QList ::iterator

Provides an STL-style non-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::begin (), QList::end (), QList::const_iterator ,和 QMutableListIterator .