Navigation
API > API/Runtime > API/Runtime/Core
Includes a function in an overload set if the predicate is true. It should be used similarly to this:
// This function will only be instantiated if SomeTrait
ReturnType is the real return type of the function.
| Name | TEnableIf |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/EnableIf.h |
| Include Path | #include "Templates/EnableIf.h" |
Syntax
template<bool Predicate, typename Result>
class TEnableIf