make

Constructs a new class instance of type T using args as the parameter list for the constructor of T.

  1. T make(Allocator allocator, A args)
    T
    make
    (
    T
    A...
    )
    (,
    auto ref A args
    )
    if (
    is(T == class)
    )
  2. T* make(Allocator allocator, A args)
  3. T make(Allocator allocator, size_t n)

Parameters

T

Class type.

A

Types of the arguments to the constructor of T.

allocator Allocator

Allocator.

args A

Constructor arguments of T.

Return Value

Type: T

Newly created $(D_PSYMBOL T).

Precondition: allocator !is null

Meta