identify

Identify the type of object.

Identify the type of object. The object will be downcasted to TypeAware first, in order to test if object is holding information about some type. If so, the type from TypeAware object will be returned, otherwise classinfo of object itself.

  1. const(TypeInfo) identify(T object)
  2. const(TypeInfo) identify(T component)
    nothrow @nogc @safe
    const(TypeInfo)
    identify
    (
    T
    )
    (
    auto ref T component
    )
    if (
    !(
    is(T : Object) ||
    is(T : const Object)
    ||
    is(T : immutable Object)
    )
    )
  3. T identify(T typeinfo)
  4. T identify(T typeinfo)
  5. T identify(T typeinfo)

Return Value

Type: const(TypeInfo)

TypeInfo of stored type of object implements TypeAware, or classinfo of object itself.

Meta