Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/EnableIf.h |
Include | #include "Templates/EnableIf.h" |
Syntax
template<bool Predicate, typename Result>
class TEnableIf
Remarks
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.