]> https://gitweb.dealii.org/ - dealii.git/commit
Prefer std::vector to std::list. 3149/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 22 Sep 2016 13:51:08 +0000 (09:51 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 22 Sep 2016 13:51:08 +0000 (09:51 -0400)
commitedc24a970f23ea155969dc80564c71e760b3a72b
tree600357f7aa8cb85664986625c310130667ce88ca
parente8d4d5e39d64a026ce16efc3ba277202d3c10a20
Prefer std::vector to std::list.

The top comment implies that a previous version of this algorithm saved
iterators into the temporary collection of new ranges (and hence this
required std::list); however, since the current version stores no such
iterators (it just uses push_back) we can make things a bit faster by
using std::vector instead of std::list.
source/base/index_set.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.