Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
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
7/** Finds the maximum sizeof the supplied types */
8template <typename...>
9struct TMaxSizeof;
10
11template <>
12struct TMaxSizeof<>
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};
static const uint32 Value
Definition MaxSizeof.h:20
static constexpr uint32 Value
Definition MaxSizeof.h:14