nogc_initialize

Initializes the object at the memory in dst, filling it out with its default state.

This variant will also initialize class instances on the stack which can then be constructed with nogc_construct. However you may still need to nogc_delete these instances, with doFree set to false.

  1. T nogc_initialize(void[] dst)
    @nogc @trusted
    T
    nogc_initialize
    (
    T
    )
    (
    void[] dst
    )
  2. T nogc_initialize(T element)
  3. T[] nogc_initialize(T[] elements)

Parameters

dst void[]

A memory range allocated, big enough to store T

Return Value

Type: T

A reference to the initialized element, or T.init if it failed.

Meta