]> https://gitweb.dealii.org/ - dealii.git/commit
AlignedVector: Switch to placement new in two codepaths. 17915/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 7 Dec 2024 22:45:08 +0000 (17:45 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 8 Dec 2024 00:02:28 +0000 (19:02 -0500)
commite797e18c77154b9d779c11cefd7fe073bc96b2ec
tree18973ab72398aca278e9271d492c827351710e1a
parent19294362e843bc18e4475558ade8d01e1fd3daf0
AlignedVector: Switch to placement new in two codepaths.

Using placement new here is, for scalar types, the same as assignment. For
non-scalar types, this change results in fewer operations since instead of doing
default construction followed by assignment we now just use the copy constructor.
include/deal.II/base/aligned_vector.h

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.