Skip to content

Glossary: Software Design Patterns in C++

DI container

Also written: dependency injection container, IoC container

A library that builds objects and their dependencies from a set of rules. C++ programs rarely need one because plain constructor calls in a composition root stay readable.

Where the book teaches it

Related terms

Composition rootDependency injection