callbackFactory

Construct aggregate using a delegate.

Constructs aggregate using a delegate, and a list of arguments passed to delegate.

  1. auto callbackFactory(Locator!() locator, T delegate(Locator!(), Args) dg, Args args)
  2. auto callbackFactory(Locator!() locator, T function(Locator!(), Args) dg, Args args)
    callbackFactory
    (
    T
    Args...
    )
    (,
    T function
    (,
    Args
    )
    dg
    ,
    auto ref Args args
    )

Parameters

dg T function
(
Locator!()
,
Args
)

the delegate that is responsible for creating aggregate, given a list of arguments.

args Args

the arguments that will be used by delegate to construct aggregate.

Return Value

Type: auto

GenericFactory!T.

Meta