#C++26

1 article

Contracts in C++26: What They Check, What They Cost, When to Use Them

That's GCC 15.2.1, `-O2 -std=c++26`, on an i7-4790 at 3.6 GHz. The function under test does one multiply. One precondition is checked.

Modern C++ // dev Apr 20, 2026 9 min read