GCAllocator.alloc

Allocates a T onto the GC and returns a pointer or class reference to it.

  1. void[] alloc(size_t size)
  2. auto alloc(Args args)
    struct GCAllocator
    static
    alloc
    (
    T
    Args...
    )
    (
    Args args
    )

Parameters

args Args

Arguments to the constructor of T.

Return Value

Type: auto

new T(args)

Meta