Skip to content

Glossary: C++ Basics

explicit

A keyword on a one-argument constructor that stops C++ from silently converting a value into that class. With `explicit Money(int)`, you must write `Money{5}`, not a bare 5.

Where the book teaches it

Related terms

Constructor