~/talk

Embracing the **noexcept** Operator and Specifier *Safely*

Talkat ACCU 2022 · 2022-04-06..04-09· [c-and-cpp, software-architecture]
slides:none on file

Explains that the noexcept operator is a compile time query used mainly to let generic code pick a faster path for moves and swaps, demonstrates a vector push_back example that saves one fewer copy when moves are nonthrowing, shows microbenchmarks and object‑size tradeoffs where speed gains are typically negligible but size can drop, documents compiler edge bugs and differences across standards, cites a 1,375‑page book with 100+ pages on noexcept, and advocates a C++23 fix around conditional noexcept and cross‑TU optimization.

AI-written summary · about

  1. 0:00Start
  2. 7:07Conservative Behavior
  3. 7:56Compilers Have Bugs
  4. 9:51Compound Expressions
  5. 10:12Composition
  6. 11:17User Provided Special Member Functions
  7. 18:21Use Cases
  8. 19:49What's the Strong Exception Safety Guarantee
  9. 33:47The Pitfalls
  10. 35:57Object Code Optimization
  11. 36:40Library Traits
  12. 44:23Generic Context Function
  13. 44:54Enforce Correctness at Compile Time
  14. 47:43Stack Unwinding
  15. 53:00Explicitly Declaring a Destructor
  16. 57:37Node Cept Wrapper
  17. 1:05:24Pitfalls
  18. 1:13:05Costly Runtime Performance
  19. 1:13:39The Zero Cost Exception Model
  20. 1:15:42Micro Benchmark
  21. 1:16:46Performance Benefit
  22. 1:17:24Optimization Conflated with Code Size
  23. 1:21:15Conclusion
  24. 1:26:14Why Are You Allowed To Mark a Destructor as no except False
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.