blaze::UnderlyingNumeric< T > Struct Template Reference

Evaluation of the underlying numeric element type of a given data type.Via this type trait it is possible to evaluate the underlying numeric (fundamental or complex) element type at the heart of a given data type. Examples: More...

#include <UnderlyingNumeric.h>

Detailed Description

template<typename T>
struct blaze::UnderlyingNumeric< T >

Evaluation of the underlying numeric element type of a given data type.

Via this type trait it is possible to evaluate the underlying numeric (fundamental or complex) element type at the heart of a given data type. Examples:

using Type1 = double; // Built-in data type
using Type2 = complex<float>; // Complex data type
using Type3 = StaticVector<int,3UL>; // Vector with built-in element type
using Type4 = CompressedVector< DynamicVector<float> >; // Vector with vector element type
blaze::UnderlyingNumeric< Type2 >::Type // corresponds to complex<float>

Note that per default UnderlyingNumeric only supports fundamental/built-in data types, complex, and data types with the nested type definition ElementType. Support for other data types can be added by specializing the UnderlyingNumeric class template.


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