QDirListing::sentinel Class
class QDirListing::sentinelEssa classe foi introduzida no Qt 6.8.
- sentinel faz parte da categoria Entrada/Saída e Redes.
Descrição detalhada
QDirListing retorna um objeto deste tipo para sinalizar o fim da iteração. Desreferenciar um ` QDirListing::const_iterator ` que seja igual a ` sentinel{} ` resulta em comportamento indefinido.
Observação: Os algoritmos “clássicos” da STL não oferecem suporte a iterador/sentinela; portanto, é necessário usar os algoritmos std::ranges do C++20 para ` QDirListing`, ou então uma biblioteca de terceiros que forneça algoritmos baseados em intervalos no C++17.
Veja também QDirListing, QDirListing::const_iterator e QDirListing::DirEntry.
© 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.