]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a range-based for loop. 9205/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Dec 2019 17:53:28 +0000 (10:53 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Dec 2019 21:45:24 +0000 (14:45 -0700)
include/deal.II/base/thread_management.h

index b482f7fd9b33f1425712af95455c159ea9f2268e..18d9cc8bfa3af9640282c005306379322cf67f3e 100644 (file)
@@ -1833,10 +1833,8 @@ namespace Threads
     void
     join_all() const
     {
-      for (typename std::list<Task<RT>>::const_iterator t = tasks.begin();
-           t != tasks.end();
-           ++t)
-        t->join();
+      for (auto &t : tasks)
+        t.join();
     }
 
   private:

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.