Skip to content

Glossary: Software Design Patterns in C++

Builder

Also written: builder pattern

A pattern where an object collects the parts of a complicated object one call at a time, then makes and checks the finished thing in `build()`. `OrderBuilder` throws if you build an order with no items.

Where the book teaches it

Related terms

Method chainingDesignated initializersCreational pattern