May 2017
Intermediate to advanced
590 pages
17h 18m
English
To find files that match particular criteria, use the following pattern, exemplified in the find_files() function, as follows:
std::vector<fs::path> find_files( fs::path const & dir, std::function<bool(fs::path const&)> filter) { auto result = std::vector<fs::path>{}; if (fs::exists(dir)) { for (auto const & entry : fs::recursive_directory_iterator( dir, fs::directory_options::follow_directory_symlink)) ...Read now
Unlock full access