Skip to content

Glossary: C++ Beyond the Basics

noexcept

A promise that a function never throws. `std::vector` moves elements while growing only if the move constructor is `noexcept`; otherwise it copies.

Where the book teaches it

Related terms

Move constructorMove assignment