TypeRegistry.create

Creates an instance of a type registered within the registry.

  1. T create(string sid, Args args)
  2. T create(uint nid, Args args)
    struct TypeRegistry(T, Args...)
    @nogc
    T
    create
    (
    uint nid
    ,
    Args args
    )

Parameters

nid uint

The numeric id to look up.

args Args

Arguments to pass to the constructor

Return Value

Type: T

A new instance of the given type, null if not found.

Meta