Skip to content

Glossary: System Design Beyond the Basics in C++

assert

Also written: <cassert>

A C++ macro from `<cassert>` that stops the program with a message if its condition is false. If a test program reaches its last line, every assert passed.

Where the book teaches it

Related terms

CHECK macroMacro