QDirListing::sentinel Class
class QDirListing::sentinelDiese Klasse wurde in Qt 6.8 eingeführt.
- „sentinel“ ist Teil des Bereichs „Eingabe/Ausgabe und Netzwerk“.
Ausführliche Beschreibung
QDirListing Gibt ein Objekt dieses Typs zurück, um das Ende der Iteration zu signalisieren. Die Dereferenzierung eines ` QDirListing::const_iterator `, der gleich ` sentinel{} ` ist, führt zu undefiniertem Verhalten.
Hinweis: Die „klassischen“ STL-Algorithmen unterstützen keine Iteratoren/Sentinel, daher müssen Sie für ` QDirListing` die C++20-Algorithmen von `std::ranges` verwenden oder eine Drittanbieter-Bibliothek, die bereichsbasierte Algorithmen in C++17 bereitstellt.
Siehe auch QDirListing, QDirListing::const_iterator und 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.