From: Wolfgang Bangerth Date: Sat, 14 Sep 2019 03:53:43 +0000 (-0600) Subject: Replace a hand-written loop by std::fill. X-Git-Tag: v9.2.0-rc1~1110^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8751%2Fhead;p=dealii.git Replace a hand-written loop by std::fill. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index b355cade3b..fa90b7039f 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -49,8 +49,9 @@ CellData::CellData() : material_id(0) , manifold_id(numbers::flat_manifold_id) { - for (unsigned int i = 0; i < GeometryInfo::vertices_per_cell; ++i) - vertices[i] = numbers::invalid_unsigned_int; + std::fill(std::begin(vertices), + std::end(vertices), + numbers::invalid_unsigned_int); }