UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaxSizeof.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
8template <typename...>
9struct TMaxSizeof;
10
11template <>
13{
14 static constexpr uint32 Value = 0;
15};
16
17template <typename T, typename... TRest>
18struct TMaxSizeof<T, TRest...>
19{
20 static const uint32 Value = sizeof(T) > TMaxSizeof<TRest...>::Value ? sizeof(T) : TMaxSizeof<TRest...>::Value;
21};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaxSizeof.h:13
Definition MaxSizeof.h:9