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 Func>
class TLazyEnableIf
Remarks
This is a variant of the above that will determine the return type 'lazily', i.e. only if the function is enabled. This is useful when the return type isn't necessarily legal code unless the enabling condition is true.
// This function will only be instantiated if SomeTrait
See boost::lazy_enable_if for more details.