C++26: Standard library hardening
Summary
C++26 introduces standard library hardening that converts certain undefined behavior into runtime contract violations, focusing on memory-safety preconditions across std::span, std::string_view, containers, optional, mdspan, bitset and valarray. The article explains the motivation, concrete hardened checks, how to enable them, and real-world impact from Google's production experience, highlighting low overhead and improved stability.