Nesta página

QList::const_iterator Class

class QList::const_iterator

Fornece um iterador const no estilo STL para QList e QStack. Mais...

Funções públicas

Descrição detalhada

QList fornece tanto iteradores no estilo STL quanto iteradores no estilo Java.

Aviso: os iteradores em contêineres compartilhados implicitamente não funcionam exatamente como os iteradores da STL. Você deve evitar copiar um contêiner enquanto houver iteradores ativos nesse contêiner. Para mais informações, leia o artigo “Problema com iteradores em compartilhamento implícito”.

Aviso: Os iteradores são invalidados quando ` QList ` é modificado. Considere que todos os iteradores são invalidados por padrão. Exceções a essa regra são explicitamente documentadas.

Veja também QList::constBegin(), QList::constEnd(), QList::iterator e QListIterator.

Documentação das funções-membro

[constexpr default] const_iterator::const_iterator()

Constrói, por padrão, uma instância de ` const_iterator`.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.