このページでは

QDirListing::sentinel Class

class QDirListing::sentinel

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

詳細な説明

QDirListing 反復処理の終了を通知するために、この型のオブジェクトを返します。sentinel{} と等しい `QDirListing::const_iterator ` を逆参照すると、未定義の挙動となります。

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

関連項目: QDirListing 、QDirListing::const_iterator 、および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.