engine
 
载入中...
搜索中...
未找到
TLazyEnableIf< Predicate, Func > 模板类 参考

This is a variant of the above that will determine the return type 'lazily', i.e. 更多...

详细描述

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.


该类的文档由以下文件生成: