Template Struct ScalarTypeID

Struct Documentation

template<typename T>
struct ScalarTypeID

Define a compile time mapping from type to enum value.

ScalarType code = (ScalarType)ScalarTypeID<int8>::value;
assert(code==pvByte);

For unspecified types this evaluates to an invalid ScalarType value (eg -1).