Function factoryMethodInstanceDestructor
Create an instance destructor that uses third party component's method to do destruction of a component.
auto auto factoryMethodInstanceDestructor(Z, string method, T, Args...)
(
T destructor,
Args arguments
)
if (isNonStaticMethodCompatible!(T, method, Z, Args));
auto auto factoryMethodInstanceDestructor(Z, string method, T, Args...)
(
Args arguments
)
if (isStaticMethodCompatible!(T, method, Z, Args));
Create an instance destructor that uses third party component's method to do destruction of a component.
Parameters
Name | Description |
---|---|
Z | the type of destructed object |
method | method used from component T to destroy component Z |
destructor | type of destructor component |
arguments | list of arguments passed to destructor component's method |
Returns
FactoryMethodInstanceDestructor!(method, T, Z, Args)