35class TypeTrait<std::complex<T>>
38 using element_type = TypeTrait<T>;
41 using Type = std::complex<T>;
47 sizeof(std::complex<T>));
49 type.insert(
"real", 0, element_type::create(T()));
50 type.insert(
"imag",
alignof(T), element_type::create(T()));
static Compound create(size_t size)
constructor
Datatype TypeClass
subtype of Datatype which will be used
Definition type_trait.hpp:58
static TypeClass create(const T &=T())
create the new type instance
static const TypeClass & get(const T &=T())
reference to const static type instance
Type
Definition type.hpp:43
@ Compound
indicates a compound type
top-level namespace of the entire library
Definition attribute.hpp:45