TaggedInspector.typeOf

Identify the type of component itself.

Identify the type of component itself. It will inspect the component and will return accurate type info that the component represents.

  1. TypeInfo typeOf(Tagged component, string property)
  2. TypeInfo typeOf(Tagged component)
    class TaggedInspector(Tagged : TaggedAlgebraic!(Union), Type, Union)
    const nothrow
    TypeInfo
    typeOf
    (
    Tagged component
    )
    if (
    anySatisfy!(ApplyRight!(isD, Type), Fields!Union)
    )

Parameters

component Tagged

component which should be identified.

Return Value

Type: TypeInfo

Type info of component, or typeid(void) if component cannot be identified by inspector

Meta