From facb40dbfe1bbf34856c84c4d5dd972cad152ec5 Mon Sep 17 00:00:00 2001 From: Reza Rastak Date: Fri, 19 Jul 2019 15:49:28 -0700 Subject: [PATCH] ranged-for documentation fix --- doc/doxygen/headers/c++11.h | 2 +- include/deal.II/base/iterator_range.h | 2 +- include/deal.II/differentiation/ad/ad_helpers.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5