class VariantAccessor(ComponentType, FieldType = ComponentType, KeyType = ComponentType)
const nothrow
TypeInfo
componentType
if (
is(
ComponentType :
VariantN!(
ComponentSize,
ComponentTypes),
size_t ComponentSize
ComponentTypes...
) &&
is(
FieldType :
VariantN!(
FieldSize,
FieldTypes),
size_t FieldSize
FieldTypes...
)
&&
is(
KeyType :
VariantN!(
KeySize,
KeyTypes),
size_t KeySize
KeyTypes...
)
)
Identify the type of supported component.
Identify the type of supported component. It returns type info of component if it is supported by accessor, otherwise it will return typeid(void) denoting that the type isn't supported by accessor. The accessor is not limited to returning the type info of passed component, it can actually return type info of super type or any type given the returned type is implicitly convertible or castable to ComponentType.