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)
    @trusted nothrow @nogc
    const(TypeInfo)
    identify
    (
    T
    )
    ()
    if (
    is(T : Object) ||
    is(T : const Object)
    ||
    is(T : immutable Object)
    )
  2. const(TypeInfo) identify(T component)
  3. T identify(T typeinfo)
  4. T identify(T typeinfo)
  5. T identify(T typeinfo)

Parameters

object T

component to be identified

Return Value

Type: const(TypeInfo)

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

Meta