Boost-Dateisystem Iterator
-
10-10-2019 - |
Frage
Just Start boost :: filesystem zu lernen.
- Was ist der Unterschied zwischen directory_iterator und basic_path :: iterator?
- Haben die Iteratoren Dateien in lexikographischer Reihenfolge durchlaufen?
Danke
Lösung
path::iterator
iterates through the directory that form the path. If a path is/a/b/c/d
, it will iterate over/
,a
,b
,c
andd
.directory_iterator
will instead iterate through files in a directory.No,
directory_iterator
will not sort files, they'll be returned in the same order as your operating system calls do.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow