Navigation
API > API/Runtime > API/Runtime/Core > API/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.
Specializations
TEnableIf< false, Result >
TEnableIf< false, Result >
TEnableIf< true, Result >
TEnableIf< true, Result >