]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/filesystem/test/issues/11228--filtered-recursive_directory_iterator-range.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / filesystem / test / issues / 11228--filtered-recursive_directory_iterator-range.cpp
index ac44d2d6ff831f7bccccb82c63435297f9e33902..4e12bb79230334d79d0e01c43a0d0c2e84a89575 100644 (file)
@@ -8,18 +8,17 @@
 namespace fs = boost::filesystem;
 using namespace boost::adaptors;
 
-int main() {
+int main()
+{
     fs::recursive_directory_iterator beg("."), end;
 
-    auto fileFilter = [](fs::path const & path)
-    {
-      return is_regular_file(path);
+    auto fileFilter = [](fs::path const& path) {
+        return is_regular_file(path);
     };
 
-    std::vector<fs::path> paths;
-    copy(boost::make_iterator_range(beg, end) | filtered(fileFilter),
-      std::back_inserter(paths));
+    std::vector< fs::path > paths;
+    copy(boost::make_iterator_range(beg, end) | filtered(fileFilter), std::back_inserter(paths));
 
-    for(auto& p : paths)
+    for (auto& p : paths)
         std::cout << p << "\n";
 }
\ No newline at end of file