]> https://gitweb.dealii.org/ - dealii.git/commitdiff
include: favor auto & cell
authorMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 04:17:55 +0000 (23:17 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 15:33:39 +0000 (10:33 -0500)
include/deal.II/base/iterator_range.h
include/deal.II/differentiation/ad/ad_helpers.h

index 41c5f40a6fa00cd946f0fd4c98d436b5a219f8f5..3d80ae29ea3137efe4f446e315761aca3f2b4080 100644 (file)
@@ -52,7 +52,7 @@ class IteratorOverIterators;
  * @code
  *   Triangulation<dim> triangulation;
  *   ...
- *   for (auto cell : triangulation.active_cell_iterators())
+ *   for (auto cell : triangulation.active_cell_iterators())
  *     cell->set_user_flag();
  * @endcode
  * In other words, the <code>cell</code> objects are iterators, and the range
index 5dec834e6e54d2a0906514d6ea92b4eb9d62aa8b..b3e21e6ddf011911a3b8aa1a2a7ab3fe30d32d63 100644 (file)
@@ -1081,7 +1081,7 @@ namespace Differentiation
      *   Vector<double> 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<double> cell_rhs (...);
      *
      *   // Assembly loop:
-     *   for (auto cell & : ...)
+     *   for (auto & cell : ...)
      *   {
      *     cell->get_dof_indices(local_dof_indices);
      *     const unsigned int n_independent_variables

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.