construct

Returns a new, GC-free, pointer to a struct or to an union.

  1. CT construct(A a)
  2. Object construct(TypeInfo_Class tic)
  3. ST* construct(A a)
    ST*
    construct
    @trusted
    (
    ST
    A...
    )
    (
    A a
    )
    if (
    is(ST == struct) ||
    is(ST == union)
    )

Parameters

ST

A struct or an union type.

a
Type: A

Variadic parameters passed to the constructor.

Meta