Function fact

Annotation that specifies a delegate to be used to instantiate aggregate.

auto auto fact(T, Args...) (
  T delegate(Locator!(), Args) dg,
  Args args
);

auto auto fact(T, Args...) (
  T function(Locator!(), Args) dg,
  Args args
);

Parameters

NameDescription
Z the type of aggregate that will be returned by the delegate
Args type tuple of args that can be passed to delegate.