gpt4 book ai didi

c++ - C++17 std::filesystem::recursive_directory_iterator::pop 等于 boost::filesystem::recursive_directory_iterator::no_push

转载 作者:行者123 更新时间:2023-11-28 01:25:44 34 4
gpt4 key购买 nike

由于 C++17 std::filesystemboost::filesystem 非常相似,所以我尝试做与这个问题相同的事情: Escaping some Directories in iteration

但是我发现在std::filesystem::recursive_directory_iterator中没有实现no_push方法,最接近的匹配是pop 方法,但它们在功能上是否完全相同?

最佳答案

no_push()no_push(true) 的等价物是 disable_recursion_pending()

no_push(false) 没有等价物。

关于c++ - C++17 std::filesystem::recursive_directory_iterator::pop 等于 boost::filesystem::recursive_directory_iterator::no_push,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53949016/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com