UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TInlineCompactSetAllocator< NumInlineElements, SecondaryAllocator >::AllocatorAlignment< ElementType > Struct Template Reference

#include <ContainerAllocationPolicies.h>

Static Public Attributes

static constexpr size_t ElementAlignof = alignof(ElementType)
 
static constexpr size_t AllocatorAlignof = alignof(typename ElementAllocator<sizeof(ElementType)>::template ForElementType<uint8>)
 
static constexpr size_t Value = FGenericPlatformMath::Max(ElementAlignof, AllocatorAlignof)
 

Detailed Description

template<uint32 NumInlineElements, typename SecondaryAllocator = TCompactSetAllocator<>>
template<typename ElementType>
struct TInlineCompactSetAllocator< NumInlineElements, SecondaryAllocator >::AllocatorAlignment< ElementType >

CompactSets use raw uint8, so we need extra alignment information for inline allocators

Member Data Documentation

◆ AllocatorAlignof

template<uint32 NumInlineElements, typename SecondaryAllocator = TCompactSetAllocator<>>
template<typename ElementType >
constexpr size_t TInlineCompactSetAllocator< NumInlineElements, SecondaryAllocator >::AllocatorAlignment< ElementType >::AllocatorAlignof = alignof(typename ElementAllocator<sizeof(ElementType)>::template ForElementType<uint8>)
staticconstexpr

◆ ElementAlignof

template<uint32 NumInlineElements, typename SecondaryAllocator = TCompactSetAllocator<>>
template<typename ElementType >
constexpr size_t TInlineCompactSetAllocator< NumInlineElements, SecondaryAllocator >::AllocatorAlignment< ElementType >::ElementAlignof = alignof(ElementType)
staticconstexpr

◆ Value

template<uint32 NumInlineElements, typename SecondaryAllocator = TCompactSetAllocator<>>
template<typename ElementType >
constexpr size_t TInlineCompactSetAllocator< NumInlineElements, SecondaryAllocator >::AllocatorAlignment< ElementType >::Value = FGenericPlatformMath::Max(ElementAlignof, AllocatorAlignof)
staticconstexpr

The documentation for this struct was generated from the following file: