]> https://gitweb.dealii.org/ - dealii.git/commit
Standardize on the idiom of calling std::erase after std::unique. 15417/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 21 Jun 2023 15:38:25 +0000 (09:38 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 21 Jun 2023 15:41:26 +0000 (09:41 -0600)
commitce4c56920043cea0ad1b8f27f0e3ef365ca3ca47
tree5fb05e5748f064bbcd6c6d4f90af0e14f8252a23
parent5ce6a1269e115adf5891869137cd9c2af6d97ded
Standardize on the idiom of calling std::erase after std::unique.

This idiom is used in many other places. This patch changes a number of locations
where we do the same thing but instead use a different idiom, using a temporary
iterator and/or using resize() instead of erase().
include/deal.II/lac/affine_constraints.templates.h
source/base/parsed_convergence_table.cc
source/lac/sparsity_tools.cc

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.