Skip to content

Glossary: Algorithms Beyond the Basics in C++

undefined behavior

What happens when C++ code does something the language doesn't define, such as reading past a vector's end or overflowing a signed integer. The result can be garbage or a crash, with no warning.

Where the book teaches it

Related terms

overflow