From de963f8e4520c24a24fb0601db8c375774a85950 Mon Sep 17 00:00:00 2001 From: Maximilian Bergbauer Date: Thu, 14 Sep 2023 10:09:12 +0200 Subject: [PATCH] Update comment and add changelog --- doc/news/changes/minor/20230914Bergbauer | 4 ++++ include/deal.II/base/aligned_vector.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 doc/news/changes/minor/20230914Bergbauer 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, -- 2.39.5