Skip to content

Glossary: C++ Basics

Brace initialization

Also written: braces, brace-initialize

Giving a variable its first value in braces, as in `int qty{2};`. It refuses values that would be narrowed, such as putting 4.5 in an `int`.

Where the book teaches it

Related terms

NarrowingInitialize