Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TLazyEnableIf< Predicate, Func > Class Template Reference

Detailed Description

template<bool Predicate, typename Func>
class TLazyEnableIf< Predicate, Func >

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<T>::Value is true for a particular T. // The function's return type is typename Transform<T>::Type. template <typename T> typename TLazyEnableIf<SomeTrait<T>::Value, Transform<T>>::Type Function(const T& Obj) { ... }

See boost::lazy_enable_if for more details.

Definition at line 50 of file EnableIf.h.


The documentation for this class was generated from the following file: