Skip to content

Glossary: Software Design Patterns in C++

Composition root

The one place, usually `main`, that builds the real parts and hands them to the code that needs them.

Where the book teaches it

Related terms

Dependency injectionConstructor injection