constructorBasedFactory

Instantiates aggregate using it's constructor with args.

Encapsulates construction of aggregate using a constructor, with args. Arguments from argument list that are references, are automatically replaced with data extracted from locator.

constructorBasedFactory
(
T
Args...
)
(,
auto ref Args args
)

Parameters

T

aggregate type

Args

type tuple of args that are passed to T's constructor

Meta