En esta página

QDirListing::sentinel Class

class QDirListing::sentinel

Esta clase se introdujo en Qt 6.8.

Descripción detallada

QDirListing Devuelve un objeto de este tipo para indicar el final de la iteración. Desreferenciar un ` QDirListing::const_iterator ` que sea igual a ` sentinel{} ` da lugar a un comportamiento indefinido.

Nota: Los algoritmos «clásicos» de la STL no admiten iteradores/sentinels, por lo que es necesario utilizar los algoritmos de std::ranges de C++20 para QDirListing, o bien una biblioteca de terceros que proporcione algoritmos basados en rangos en C++17.

Véase también QDirListing, QDirListing::const_iterator y 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.