std::filesystem::recursive_directory_iterator::pop
来自cppreference.com
void pop(); |
(1) | (C++17 起) |
void pop( std::error_code& ec ); |
(2) | (C++17 起) |
在目录层级中上移一层迭代器。使所有 *this 的先前值的副本失效。
若父目录在迭代的目录层级之外(即 depth() == 0),则设 *this 为尾目录迭代器。
目录 |
[编辑] 参数
ec | - | 要设置错误状态到的错误码 |
[编辑] 返回值
(无)
[编辑] 异常
若内存分配失败,则任何不标记为 noexcept
的重载可能抛出 std::bad_alloc 。
不接受 std::error_code& 形参的重载抛出 std::filesystem::filesystem_error,构造时以 OS 错误码为错误码实参。
接受 std::error_code& 形参的重载将其设置
为 OS API 错误码,而未发生错误时则执行 ec.clear()。
[编辑] 示例
本节未完成 原��:暂无示例 |