![]() |
Base template for the HighType type trait. More...
#include <HighType.h>
Base template for the HighType type trait.
The HighType class template determines the more significant, dominating data type of the two given data types T1 and T2. For instance, in case both T1 and T2 are built-in data types, the nested type Type is set to the larger or signed data type. In case no higher data type can be selected, Type is set to INVALID_TYPE. Note that cv-qualifiers and reference modifiers are generally ignored.
Per default, the HighType template provides specializations for the following built-in data types:
Additionally, the Blaze library provides specializations for the following user-defined arithmetic types, wherever a more significant data type can be selected:
It is possible to specialize the HighType template for additional user-defined data types. The following example shows the according specialization for two dynamic column vectors: