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

#include <type_data.h>

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: