QDirListing::sentinel Class
class QDirListing::sentinelQuesta classe è stata introdotta in Qt 6.8.
- sentinel fa parte delle funzionalità di I/O e rete.
Descrizione dettagliata
QDirListing restituisce un oggetto di questo tipo per segnalare la fine dell'iterazione. Il dereferenziamento di un QDirListing::const_iterator che è uguale a sentinel{} comporta un comportamento indefinito.
Nota: Gli algoritmi "classici" della STL non supportano iteratori/sentinelle, pertanto è necessario utilizzare gli algoritmi std::ranges di C++20 per QDirListing, oppure una libreria di terze parti che fornisca algoritmi basati su intervalli in C++17.
Vedi anche 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.