From: Wolfgang Bangerth Date: Tue, 31 Dec 2019 17:53:28 +0000 (-0700) Subject: Use a range-based for loop. X-Git-Tag: v9.2.0-rc1~755^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6ae19cc435ee433a309a49895e20b677f5bb3a;p=dealii.git Use a range-based for loop. --- diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index b482f7fd9b..18d9cc8bfa 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -1833,10 +1833,8 @@ namespace Threads void join_all() const { - for (typename std::list>::const_iterator t = tasks.begin(); - t != tasks.end(); - ++t) - t->join(); + for (auto &t : tasks) + t.join(); } private: