MADNESS  version 0.9
List of all members
madness::lazy_enable_if< Cond, returnT > Struct Template Reference

lazy_enable_if from Boost for conditionally instantiating templates based on type More...

#include <enable_if.h>

Inheritance diagram for madness::lazy_enable_if< Cond, returnT >:
Inheritance graph
[legend]
Collaboration diagram for madness::lazy_enable_if< Cond, returnT >:
Collaboration graph
[legend]

Additional Inherited Members

- Public Types inherited from madness::lazy_enable_if_c< Cond::value, returnT >
typedef returnT::type type
 

Detailed Description

template<class Cond, class returnT>
struct madness::lazy_enable_if< Cond, returnT >

lazy_enable_if from Boost for conditionally instantiating templates based on type

Evaluates to returnT if Cond::value is true, otherwise to an invalid type expression which causes the template expression in which it is used to not be considered for overload resolution. This "lazy" version is used if returnT is only valid when Cond::value is true. Note: typename T::type is the return type and must be well formed.


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