QDirListing::sentinel Class
class QDirListing::sentinel该类在 Qt 6.8 中引入。
- sentinel 是Input/Output 和 Networking 的一部分。
详细说明
QDirListing 返回一个此类型的对象,作为迭代结束的信号。取消引用等于 的 是未定义的行为。sentinel{}
QDirListing::const_iterator
注意: "经典 "STL 算法不支持迭代器/哨兵,因此您需要使用 C++20 std::ranges 算法QDirListing ,或者使用 C++17 中提供基于范围算法的第三方库。
另请参见 QDirListing,QDirListing::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.