]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clean up some headers and code samples. 7873/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 30 Mar 2019 15:28:45 +0000 (11:28 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 30 Mar 2019 15:30:20 +0000 (11:30 -0400)
include/deal.II/lac/vector.h
include/deal.II/lac/vector.templates.h

index f8ff653eae860e294fde909446c6229f460028be..ecddb7674b03c3ae674715ce39f09298dd4a4301 100644 (file)
 
 #include <boost/serialization/split_member.hpp>
 
-#include <cstdio>
-#include <cstring>
+#include <algorithm>
 #include <initializer_list>
-#include <iostream>
+#include <iosfwd>
+#include <iterator>
 #include <vector>
 
 DEAL_II_NAMESPACE_OPEN
@@ -642,7 +642,7 @@ public:
    * If the current vector is called @p v, then this function is the equivalent
    * to the code
    * @code
-   *   for (unsigned int i=0; i<indices.size(); ++i)
+   *   for (unsigned int i = 0; i < indices.size(); ++i)
    *     values[i] = v[indices[i]];
    * @endcode
    *
@@ -669,11 +669,11 @@ public:
    *   ForwardIterator indices_p = indices_begin;
    *   OutputIterator  values_p  = values_begin;
    *   while (indices_p != indices_end)
-   *   {
-   *     *values_p = v[*indices_p];
-   *     ++indices_p;
-   *     ++values_p;
-   *   }
+   *     {
+   *       *values_p = v[*indices_p];
+   *       ++indices_p;
+   *       ++values_p;
+   *     }
    * @endcode
    *
    * @pre It must be possible to write into as many memory locations
index bc98f73050e57358d13cbcc7289e51056f9637b1..8b162900af78cb67675e55ea866b8853afe87753 100644 (file)
@@ -36,6 +36,7 @@
 
 #include <algorithm>
 #include <cmath>
+#include <cstdio>
 #include <cstring>
 #include <iomanip>
 #include <iostream>

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.