Tag: Exceptions
3 posts
-
C++ noexcept Specifier: Contracts, Moves, and std::terminate
How noexcept actually changes program behavior: why a violated noexcept promise skips exception handling entirely and calls std::terminate, and why vector silently falls back to copying without a noexcept move constructor.
-
C++ Exceptions Done Right: Catch by Reference, Safety Guarantees, RAII and noexcept
Handle C++ exceptions safely: catch by const reference, basic/strong/nothrow guarantees, RAII cleanup, noexcept on moves, and when to use std::expected.
-
C++ Exception Performance: Zero-Cost, noexcept, and Error
C++ exception model: zero-cost on success path, cost of throw and unwind, noexcept and vector moves, frequent errors vs exceptions, and -fno-exceptions.