]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update comment and add changelog 15974/head
authorMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Thu, 14 Sep 2023 08:09:12 +0000 (10:09 +0200)
committerMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Thu, 14 Sep 2023 08:09:12 +0000 (10:09 +0200)
doc/news/changes/minor/20230914Bergbauer [new file with mode: 0644]
include/deal.II/base/aligned_vector.h

diff --git a/doc/news/changes/minor/20230914Bergbauer b/doc/news/changes/minor/20230914Bergbauer
new file mode 100644 (file)
index 0000000..f9ad30a
--- /dev/null
@@ -0,0 +1,4 @@
+Added: A new function shink_to_fit() was added to AlignedVector
+in analogy to std::vector.
+<br>
+(Maximilian Bergbauer, 2023/09/14)
index 0a61377b53253324844bb46939db6408743416ec..c6af1ed46e601f5dfb28ec9b11444c7d039758bf 100644 (file)
@@ -481,8 +481,8 @@ public:
 
 private:
   /**
-   * Allocates a new vector and moves the data from the old vector to the new
-   * vector. Deletes the old vector and releases the memory.
+   * Make a new allocation, move the data from the old memory region to the new
+   * region, and release the old memory.
    */
   void
   allocate_and_move(const size_t old_size,

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.