Gromacs
2026.0-dev-20241204-d69d709
|
#include <memory>
#include <vector>
Declares an allocator that can use default initialization instead of values initialization. This is useful for improving performance of resize() in standard vectors for buffers in performance critical code.
Classes | |
class | gmx::DefaultInitializationAllocator< T, A > |
Allocator adaptor that interposes construct() calls to convert value initialization into default initialization. More... | |
Typedefs | |
template<typename T > | |
using | gmx::FastVector = std::vector< T, DefaultInitializationAllocator< T >> |
Convenience type for vector that avoids initialization at resize() | |