From 8d345842838c13fce0df5f9045a8842a98b63477 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 10 Nov 2022 14:31:49 -0700 Subject: [PATCH] Use a range-based for loop. --- source/base/data_out_base.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 7320294069..a4dd9aedda 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -231,8 +231,8 @@ namespace { std::ostringstream stream; stream.precision(precision); - for (unsigned int i = 0; i < data.size(); ++i) - stream << data[i] << ' '; + for (const T &el : data) + stream << el << ' '; return stream.str(); } } -- 2.39.5