DataKindOf maps a C++ type to its DataKind at compile time. More...
#include <hydrocouplehelpers.h>
Static Public Attributes | |
| static constexpr DataKind | kind = Detail::deduceDataKind<std::remove_cv_t<T>>() |
| The DataKind of T. | |
DataKindOf maps a C++ type to its DataKind at compile time.
Every integer type maps by width and signedness (so long, long long and size_t all have a kind), float/double to Float32/Float64, bool to Boolean and std::string to String. Any other type is a compile error rather than a silent Opaque: an Opaque descriptor needs an element size the kind cannot supply, so describe opaque elements with makeOpaqueContiguous() instead.
| T | is the C++ element type (cv-qualifiers are ignored). |
|
staticconstexpr |
The DataKind of T.