vecmem 1.14.0
|
A deleter class for trivial allocations. More...
#include <vecmem/memory/details/unique_alloc_deleter.hpp>
Public Member Functions | |
unique_alloc_deleter (void)=default | |
Default-construct a new unique allocation deleter. | |
unique_alloc_deleter (memory_resource &mr, std::size_t s, std::size_t a=0) | |
Construct a new unique allocation deleter. | |
unique_alloc_deleter (const unique_alloc_deleter &i)=default | |
Copy a unique allocation deleter. | |
unique_alloc_deleter (unique_alloc_deleter &&i)=default | |
Move a unique allocation deleter. | |
unique_alloc_deleter & | operator= (const unique_alloc_deleter &i)=default |
Copy-assign a unique allocation deleter. | |
unique_alloc_deleter & | operator= (unique_alloc_deleter &&i)=default |
Move-assign a unique allocation deleter. | |
void | operator() (void *p) const |
Activate the deletion mechanism of the deleter. | |
A deleter class for trivial allocations.
This class provides all the necessary functionality to allow unique pointers to deallocate allocations of trivial types, as well as arrays of them.
T | The type to deallocate. |
|
default |
Default-construct a new unique allocation deleter.
This constructor should only really be used in cases where we are nulling a unique pointer.
|
inline |
Construct a new unique allocation deleter.
This is the standard constructor for this class, which stores all the necessary data to deallocate an allocation.
mr | The memory resource to use for deallocation. |
p | The pointer to deallocate. |
s | The size of the allocation. |
a | The alignment of the allocation. |
|
default |
Copy a unique allocation deleter.
i | The allocation deleter to copy. |
|
default |
Move a unique allocation deleter.
i | The allocation deleter to move. |
|
inline |
Activate the deletion mechanism of the deleter.
p | The pointer to deallocate. |
|
default |
Copy-assign a unique allocation deleter.
i | The object to copy into the current one. |
|
default |
Move-assign a unique allocation deleter.
i | The object to move into the current one. |