From: Maximilian Bergbauer Date: Thu, 14 Sep 2023 08:09:12 +0000 (+0200) Subject: Update comment and add changelog X-Git-Tag: relicensing~487^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15974%2Fhead;p=dealii.git Update comment and add changelog --- diff --git a/doc/news/changes/minor/20230914Bergbauer b/doc/news/changes/minor/20230914Bergbauer new file mode 100644 index 0000000000..f9ad30a622 --- /dev/null +++ b/doc/news/changes/minor/20230914Bergbauer @@ -0,0 +1,4 @@ +Added: A new function shink_to_fit() was added to AlignedVector +in analogy to std::vector. +
+(Maximilian Bergbauer, 2023/09/14) diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h index 0a61377b53..c6af1ed46e 100644 --- a/include/deal.II/base/aligned_vector.h +++ b/include/deal.II/base/aligned_vector.h @@ -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,