std::filesystem::directory_iterator::directory_iterator
文件系统::目录[医]迭代器::目录[医]迭代器
directory_iterator( | (1) | (since C++17) |
---|---|---|
explicit directory_iterator( const std::filesystem::path& p | (2) | (since C++17) |
directory_iterator( const std::filesystem::path& p, std::error_code& ec | (3) | (since C++17) |
directory_iterator( const directory_iterator& ) = default; | (4) | (since C++17) |
directory_iterator( directory_iterator&& ) = default; | (5) | (since C++17) |
p
.如果p
参数
例外
1%29
noexcept
规格:
noexcept
2%29std::filesystem::filesystem_error
如果发生错误。异常对象是用p
作为一种争论。
3%29
noexcept
规格:
noexcept
注记
要在当前目录上迭代,请将迭代器构造为directory_iterator(".")
而不是directory_iterator("")
...
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppremience.com/w/cpp/filesystem/目录[医]迭代器/目录[医]迭代器