factoryMethodInstanceDestructor

Create an instance destructor that uses third party component's method to do destruction of a component.

Create an instance destructor that uses third party component's method to do destruction of a component.

  1. auto factoryMethodInstanceDestructor(T destructor, Args arguments)
  2. auto factoryMethodInstanceDestructor(Args arguments)
    factoryMethodInstanceDestructor
    (
    Z
    string method
    T
    Args...
    )
    ()
    if (
    isStaticMethodCompatible!(T, method, Z, Args)
    )

Parameters

Z

the type of destructed object

method

method used from component T to destroy component Z

arguments Args

list of arguments passed to destructor component's method

Return Value

Type: auto

FactoryMethodInstanceDestructor!(method, T, Z, Args)

Meta