SPH
|
Base class for utility wrappers (Optional, Variant, ...) More...
Go to the source code of this file.
Classes | |
class | AlignedStorage< Type > |
Simple block of memory on stack with size and alignment given by template type. More... | |
class | AlignedStorage< Type & > |
Specialization for l-value references, a simple wrapper of ReferenceWrapper with same interface to allow generic usage of AlignedStorage for both values and references. More... | |
Functions | |
template<typename T , typename... TArgs> | |
NAMESPACE_SPH_BEGIN INLINE T * | alignedNew (TArgs &&... args) |
Creates a new object of type T on heap, using aligned allocation. More... | |
template<typename T > | |
INLINE void | alignedDelete (T *ptr) |
Deletes an object previously allocated using alignedNew. More... | |
template<typename T > | |
INLINE bool | isAligned (const T &value) |
Base class for utility wrappers (Optional, Variant, ...)
Definition in file AlignedStorage.h.
INLINE void alignedDelete | ( | T * | ptr | ) |
Deletes an object previously allocated using alignedNew.
Definition at line 26 of file AlignedStorage.h.
NAMESPACE_SPH_BEGIN INLINE T* alignedNew | ( | TArgs &&... | args | ) |
Creates a new object of type T on heap, using aligned allocation.
Definition at line 16 of file AlignedStorage.h.
INLINE bool isAligned | ( | const T & | value | ) |
Definition at line 37 of file AlignedStorage.h.