callbackDestructor

Use callback stored in annotation to destroy a component of type T

  1. struct CallbackDestructor(T, Dg : void delegate(RCIAllocator, ref T destructable, Args), Args...)
  2. CallbackDestructor callbackDestructor(Dg dg, Args args)
    @safe
    callbackDestructor
    (
    T
    Dg : void delegate
    (
    RCIAllocator
    ,,
    Args
    )
    Args...
    )
    (
    Dg dg
    ,
    Args args
    )

Parameters

dg Dg

callback used to destroy the component

args Args

arguments passed to callback to destroy the component

Meta