From: Reza Rastak Date: Fri, 19 Jul 2019 22:49:28 +0000 (-0700) Subject: ranged-for documentation fix X-Git-Tag: v9.2.0-rc1~1368^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=facb40dbfe1bbf34856c84c4d5dd972cad152ec5;p=dealii.git ranged-for documentation fix --- diff --git a/doc/doxygen/headers/c++11.h b/doc/doxygen/headers/c++11.h index 5f3581a3b8..075311c7f1 100644 --- a/doc/doxygen/headers/c++11.h +++ b/doc/doxygen/headers/c++11.h @@ -40,7 +40,7 @@ * @code * Triangulation triangulation; * ... - * for (auto cell : triangulation.active_cell_iterators()) + * for (auto &cell : triangulation.active_cell_iterators()) * cell->set_refine_flag(); * @endcode * This relies on functions such as Triangulation::active_cell_iterators(), diff --git a/include/deal.II/base/iterator_range.h b/include/deal.II/base/iterator_range.h index 30b9e51cb2..ca862322f6 100644 --- a/include/deal.II/base/iterator_range.h +++ b/include/deal.II/base/iterator_range.h @@ -52,7 +52,7 @@ class IteratorOverIterators; * @code * Triangulation triangulation; * ... - * for (auto & cell : triangulation.active_cell_iterators()) + * for (auto &cell : triangulation.active_cell_iterators()) * cell->set_user_flag(); * @endcode * In other words, the cell objects are iterators, and the range diff --git a/include/deal.II/differentiation/ad/ad_helpers.h b/include/deal.II/differentiation/ad/ad_helpers.h index 928f92cdff..a41e6c0b28 100644 --- a/include/deal.II/differentiation/ad/ad_helpers.h +++ b/include/deal.II/differentiation/ad/ad_helpers.h @@ -1081,7 +1081,7 @@ namespace Differentiation * Vector cell_rhs (...); * * // Assembly loop: - * for (auto & cell : ...) + * for (auto &cell : ...) * { * cell->get_dof_indices(local_dof_indices); * const unsigned int n_independent_variables = @@ -1384,7 +1384,7 @@ namespace Differentiation * Vector cell_rhs (...); * * // Assembly loop: - * for (auto & cell : ...) + * for (auto &cell : ...) * { * cell->get_dof_indices(local_dof_indices); * const unsigned int n_independent_variables