Added DefaultInitializationAllocator
commitbadf5ffab637e78a05ac422cd55517005c430e09
authorBerk Hess <hess@kth.se>
Tue, 18 Dec 2018 11:00:42 +0000 (18 12:00 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 9 Jan 2019 05:54:58 +0000 (9 06:54 +0100)
treec75421a462a8620717358eba70722115fe2078b9
parent16e25281112e630d9f6b5f4fb518e4e1bb05e30f
Added DefaultInitializationAllocator

Added an allocator that can be used to default initialize elements
of a std::vector on resize(). This is useful to avoid initialization
in performance critical code.

Change-Id: I65bd52a760c68c73555e8bb9e017de353a6e9a81
src/gromacs/utility/defaultinitializationallocator.h [new file with mode: 0644]
src/gromacs/utility/tests/CMakeLists.txt
src/gromacs/utility/tests/defaultinitializationallocator.cpp [new file with mode: 0644]