parent - multiple declarations
Function parent
Instantiates a component using as basis some third party factory.
auto auto parent(Z, T, X, W)
(
Z factory,
X delegated
);
Parameters
Name | Description |
---|---|
T | the type of component that is to be configured |
factory | factory that uses the parent factory for component instantiation |
delegated | the factory used by factory to instantiate an object. |
Function parent
Instantiates a component using as basis some third party factory.
auto auto parent(Z, T, X)
(
Z factory,
X source,
string identity
);
Instantiates a component using as basis some third party factory. When a parent factory from a source of factories is used, type checking of component returned by parent factory is done at runtime, and will throw an exception if type of parent factory mismatches the type of component that uses respective factory.
Parameters
Name | Description |
---|---|
T | the type of component that is to be configured |
factory | factory that uses the parent factory for component instantiation |
source | source of factories from which parent factory is extracted |
identity | identity of factory used by factory to instantiate component |