MADNESS  0.10.1
madness::IsSupported< TypeData, typename, bool > Struct Template Reference

Detailed Description

template<typename TypeData, typename, bool = TypeData::supported>
struct madness::IsSupported< TypeData, typename, bool >

The template IsSupported is used to constrain instantiation of templates to the supported scalar types. It is only implemented if the type is supported, in which case it evaluates to the return type.

E.g., to restrict operator+ to supported types T that can be added to type A, with a return type of A.

template <typename T> typename IsSupported < TensorTypeData<T>, A >type operator+(A const &v, T const &w) { ... return something of type A };


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