modm API documentation
|
#include <modm/utils/allocator.hpp>
Static Public Member Functions | |
static void | construct (T *p, const T &value) |
static void | destroy (T *p) |
Base class for all allocator types
|
inlinestatic |
Construct an object
Constructs an object of type T (the template parameter) on the location pointed by p using its copy constructor to initialize its value to value
.
Notice that this does not allocate space for the element, it should already be available at p.
|
inlinestatic |
Destroy an object
Destroys the object of type T (the template parameter) pointed by p.
Notice that this does not deallocate space for the element.