|
Gromacs
2025.3
|
#include <gromacs/utility/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_v< U >) |
| Constructs an object and default initializes. | |
| template<typename U , typename... Args> | |
| void | construct (U *ptr, Args &&...args) |
| Constructs an object and value initializes. | |
1.8.5