C++ Exception Safety
Exception-safe C++ code uses RAII so resources are released during stack unwinding and defines what state remains after an operation throws. Common guarantees are no-throw, strong, and basic.
Resource safety and state guarantees when operations throw exceptions.