QDirListing::sentinel Class
class QDirListing::sentinelCette classe a été introduite dans Qt 6.8.
- sentinel fait partie de Input/Output et Networking.
Description détaillée
QDirListing renvoie un objet de ce type pour signaler la fin de l'itération. Le déréférencement d'un QDirListing::const_iterator égal à sentinel{} est un comportement non défini.
Remarque : les algorithmes STL "classiques" ne prennent pas en charge les itérateurs/sentinelles, vous devez donc utiliser les algorithmes std::ranges du C++20 pour QDirListing, ou une bibliothèque tierce qui fournit des algorithmes basés sur des intervalles en C++17.
Voir aussi 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.