header_utils
Loading...
Searching...
No Matches
Dependency Injection

Basic dependency injection framework.

Basic dependency injection framework.

Documentation for it is in progress.

A tiny and as-simple-as-possible Dependency Injection/IoC library, based around shared_ptrs.

Works, but is not-documented and might contain bugs. Still, you should be able to register types, instances, factory functions, and the construction arguments should resolve automatically, so, a basic DI container.

Supports custom instance lifetimes (strong and weak singletons, per-thread singleton, multiple-instances), naming interfaces/instances, instance creation callbacks, and probably other stuff.