TypeRegistry.create

Creates an instance of a type registered within the registry.

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

Parameters

sid string

The string 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