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" );

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" );

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss