QDirListing::sentinel Class
class QDirListing::sentinelCette classe a été introduite dans Qt 6.8.
- sentinel fait partie du module « Entrée/Sortie et Réseau ».
Description détaillée
QDirListing Renvoie un objet de ce type pour signaler la fin de l’itération. La déréférenciation d’un QDirListing::const_iterator égal à sentinel{} entraîne un comportement indéfini.
Remarque : les algorithmes « classiques » de la STL ne prennent pas en charge les itérateurs/sentinelles ; vous devez donc utiliser les algorithmes std::ranges de C++20 pour ` QDirListing`, ou bien une bibliothèque tierce fournissant des algorithmes basés sur les plages en C++17.
Voir également QDirListing, QDirListing::const_iterator et 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.