From: Jiaqi Zhang Date: Wed, 21 Jul 2021 18:03:05 +0000 (+0000) Subject: minor fix and changelog X-Git-Tag: v9.4.0-rc1~1125^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12588%2Fhead;p=dealii.git minor fix and changelog --- diff --git a/doc/news/changes/minor/20210721JiaqiZhang b/doc/news/changes/minor/20210721JiaqiZhang new file mode 100644 index 0000000000..010a727950 --- /dev/null +++ b/doc/news/changes/minor/20210721JiaqiZhang @@ -0,0 +1,4 @@ +New: The new function TableBase::clear() allows to +empty a Table object. +
+(Jiaqi Zhang, 2021/07/21) diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index 7eb422369f..62541c4034 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -2431,7 +2431,7 @@ template inline void TableBase::clear() { - values.resize(0); + values.clear(); table_size = TableIndices(); }