functionInstanceFactory

Instantiates a component using a function/delegate with args

Encapsulates construction of component using a function, with args. Arguments from argument list that are RuntimeReferences, are automatically replaced with component extracted from locator.

  1. template FunctionInstanceFactory(Dg, Args...)
  2. auto functionInstanceFactory(Dg dg, Args args)
    functionInstanceFactory
    (
    Dg
    Args...
    )
    (
    Dg dg
    ,
    Args args
    )

Parameters

Dg

type of function or delegate

Args

arguments mixed with references used to resolve function arguments

Meta