construct

Returns a new, GC-free, class instance.

This overload is designed to create factories and like the default Object.factory method, it only calls, if possible, the default constructor. The factory() function implemented in this iz.memory is based on this construct() overload.

  1. CT construct(A a)
  2. Object construct(TypeInfo_Class tic)
    Object
    construct
    @trusted
    (
    TypeInfo_Class tic
    )
  3. ST* construct(A a)

Parameters

tic
Type: TypeInfo_Class

The TypeInfo_Class of the Object to create.

Meta