3#include <Foundation/Containers/DynamicArray.h>
10template <
typename T, plUInt32 Size,
typename AllocatorWrapper = plDefaultAllocatorWrapper>
40 struct alignas(PL_ALIGNMENT_OF(T))
42 plUInt8 m_StaticData[Size *
sizeof(T)];
45 PL_ALWAYS_INLINE T* GetStaticArray() {
return reinterpret_cast<T*
>(m_StaticData); }
47 PL_ALWAYS_INLINE
const T* GetStaticArray()
const {
return reinterpret_cast<const T*
>(m_StaticData); }
50#include <Foundation/Containers/Implementation/HybridArray_inl.h>
Base class for all memory allocators.
Definition Allocator.h:23
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Definition DynamicArray.h:81
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
void operator=(const plHybridArray< T, Size, AllocatorWrapper > &rhs)
Copies the data from some other contiguous array into this one.
Definition HybridArray_inl.h:37
plHybridArray()
Creates an empty array. Does not allocate any data yet.
Definition HybridArray_inl.h:4