From 9f60a91f0c5beb72c17db6a31038c84612e8d22b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 6 Apr 2015 10:38:44 -0500 Subject: [PATCH] Update docs for a statement one of my students just stumbled over. --- examples/step-49/step-49.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/step-49/step-49.cc b/examples/step-49/step-49.cc index 592cafc54c..456205758f 100644 --- a/examples/step-49/step-49.cc +++ b/examples/step-49/step-49.cc @@ -65,8 +65,11 @@ void mesh_info(const Triangulation &tria, << " dimension: " << dim << std::endl << " no. of cells: " << tria.n_active_cells() << std::endl; - // Next loop over all faces of all cells and find how often each boundary - // indicator is used: + // Next loop over all faces of all cells and find how often each + // boundary indicator is used (recall that if you access an element + // of a std::map object that doesn't exist, it is implicitly created + // and default initialized -- to zero, in the current case -- before + // we then increment it): { std::map boundary_count; typename Triangulation::active_cell_iterator -- 2.39.5