Skip to content

Glossary: Software Design Patterns in C++

Designated initializers

Also written: designated initializer

C++20 syntax that names each field when filling in a struct, like `.carrier = "usps"`. It needs no builder class when all the parts are known at once.

Where the book teaches it

Related terms

Builderaggregate initialization