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)
    factoryMethodInstanceDestructor
    (
    Z
    string method
    T
    Args...
    )
    if (
    isNonStaticMethodCompatible!(T, method, Z, Args)
    )
  2. auto factoryMethodInstanceDestructor(Args arguments)

Parameters

Z

the type of destructed object

method

method used from component T to destroy component Z

destructor T

type of destructor component

arguments Args

list of arguments passed to destructor component's method

Return Value

Type: auto

FactoryMethodInstanceDestructor!(method, T, Z, Args)

Meta