sentinel Class

class QDirListing::sentinel

このクラスはQt 6.8で導入された。

詳しい説明

QDirListing は、反復処理の終了を知らせるために、この型のオブジェクトを返します。 と等しい を再参照することは未定義の動作です。sentinel{} QDirListing::const_iterator

: 「古典的な」 STL アルゴリズムは反復子/センチネルをサポートしていないため、QDirListing には C++20 std::ranges アルゴリズムを使用するか、C++17 で範囲ベースのアルゴリズムを提供するサードパーティ製ライブラリを使用する必要があります。

QDirListingQDirListing::const_iterator 、およびQDirListing::DirEntryも参照してください

© 2025 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.