Gromacs
2021.4
|
#include <gromacs/utility/defaultinitializationallocator.h>
Inherits A.
Allocator adaptor that interposes construct() calls to convert value initialization into default initialization.
This can be used to avoid initialization e.g. on resize() in std::vector.
Public Member Functions | |
template<typename U > | |
void | construct (U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value) |
Constructs an object and default initializes. More... | |
template<typename U , typename... Args> | |
void | construct (U *ptr, Args &&...args) |
Constructs an object and value initializes. | |
|
inlinenoexcept |
Constructs an object and default initializes.