Boost filesystem iterator
Just starting to learn boost::filesystem.
- What is a differen开发者_开发技巧ce between directory_iterator and basic_path::iterator?
- Do the iterators iterate files in lexicographical order?
Thanks
path::iteratoriterates through the directory that form the path. If a path is/a/b/c/d, it will iterate over/,a,b,candd.directory_iteratorwill instead iterate through files in a directory.No,
directory_iteratorwill not sort files, they'll be returned in the same order as your operating system calls do.
加载中,请稍侯......
精彩评论