Function value

Instantiates a component using a value as basis.

auto auto value(Z, T) (
  Z factory,
  auto ref T value
);

Instantiates a component using a value as basis. As a consequence, any reference based type will point to same content when it is instantiated multiple times.

Parameters

NameDescription
T the component type
factory ConfigurationContextFactory where to inject the constructor or method configurer
value default value used to instantiate component