ArgumentAccessor.componentType

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.

class ArgumentAccessor
const nothrow
TypeInfo
componentType

Parameters

component ArgumentsHolder

the component for which accessor should identify the underlying type

Return Value

Type: TypeInfo

TypeInfo type information about passed component, or typeid(void) if component is not supported.

Meta