UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
EnableIf.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
19template <bool Predicate, typename Result = void>
21
22template <typename Result>
23class TEnableIf<true, Result>
24{
25public:
26 using type = Result;
27 using Type = Result;
28};
29
30template <typename Result>
31class TEnableIf<false, Result>
32{ };
33
34
49template <bool Predicate, typename Func>
51
52template <typename Func>
53class TLazyEnableIf<true, Func>
54{
55public:
56 using type = typename Func::Type;
57 using Type = typename Func::Type;
58};
59
60template <typename Func>
61class TLazyEnableIf<false, Func>
62{
63};
return true
Definition ExternalRpcRegistry.cpp:601
Result type
Definition EnableIf.h:26
Result Type
Definition EnableIf.h:27
Definition EnableIf.h:20
typename Func::Type Type
Definition EnableIf.h:57
typename Func::Type type
Definition EnableIf.h:56
Definition EnableIf.h:50
@ false
Definition radaudio_common.h:23