DerivedContainer

A dependency container that uses another container to resolve dependencies it doesn't know about itself.

class DerivedContainer : SimpleContainer {}

Examples

1 auto base = makeContainer();
2 base.value!int(6);
3 base.value!string("foo");
4 
5 auto derived = base.derivedContainer();
6 derived.value!string("bar");
7 
8 assert(derived.resolve!string() == "bar");
9 assert(derived.resolve!int() == 6);

Meta