TAllocatorTraits< TMemoryImageAllocator< Alignment > >

Static_assert( sizeof(TMemoryImageAllocator<>::ForAnyElementType) == sizeof(FDefaultAllocator::ForAnyElementType) && alignof(TMemoryImageAllocator<>::ForAnyElementType) == alignof(FDefaultAllocator::ForAnyElementType), "TMemoryImageAllocator must be the same layout as FDefaultAllocator for our FScriptArray hacks to work" );

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TAllocatorTraitsBase

TAllocatorTraits< TMemoryImageAllocator< Alignment > >

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Serialization/MemoryImage.h

Include

#include "Serialization/MemoryImage.h"

Syntax

template<uint32 Alignment>
struct TAllocatorTraits< TMemoryImageAllocator< Alignment > > : public TAllocatorTraitsBase< TMemoryImageAllocator< Alignment > >

Remarks

Static_assert( sizeof(TMemoryImageAllocator<>::ForAnyElementType) == sizeof(FDefaultAllocator::ForAnyElementType) && alignof(TMemoryImageAllocator<>::ForAnyElementType) == alignof(FDefaultAllocator::ForAnyElementType), "TMemoryImageAllocator must be the same layout as FDefaultAllocator for our FScriptArray hacks to work" );