for(auto& p: fs::directory_iterator("path_to_a_directory"))
12
for( const fs::directory_entry& p: fs::directory_iterator("sandbox")) std::cout << p << '\n';