~/talk

C++ Contracts – a Meaningfully Viable Product

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [c-and-cpp]
slides:none on file

C++26 accepts a Contracts MVP that adds preconditions postconditions and in-function assertions with a new contract_assert keyword and rules that require contracts on the function first declaration. It specifies constification applies shallowly to external objects, forces const on by-value parameters used in postconditions, disallows repeated contracts with differing predicates or lambdas, and lets implementations pick among four semantics: ignore observe enforce quick_and_force plus configurable repetition and a replaceable handle_contract_violation runtime hook.

AI-written summary · about

  1. 0:00Introduction to C++ contracts
  2. 3:35Contract terminology basics
  3. 12:50Syntactic restrictions in contracts
  4. 19:05Constification controversies
  5. 33:04Post-condition unique features
  6. 39:57Contract evaluation points
  7. 42:11Contract semantics modes
  8. 57:44Side effects in contracts
  9. 1:03:09Violation handler mechanics
  10. 1:06:20Contract assert false debate
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.