Function fact

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

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

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

Parameters

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