Skip to content

Glossary: C++ Beyond the Basics

Undefined behavior

Also written: UB

Code the C++ standard gives no meaning, so any result is possible, even a correct-looking one that hides the bug. A data race is one example.

Where the book teaches it

Related terms

Data raceAddressSanitizer (ASan)UBSan