C++ Features You Might Not Know
summary
Covers concrete, surprising C++ behaviors with examples: array indexing is commutative indexing (a[b] == b[a]); unary + forces integral promotions, decays arrays to pointers and converts captureless lambdas to function pointers; use a fold over comma to call a function on a parameter pack; operator overloads can break expectations (no short‑circuit for &&/||, overloadable operator-> and comma); dynamic_cast to void yields object base address; sizeof has lower precedence than [] so the canonical sizeof precedence trick yields 1, not the string length.
AI-written summary · about
chapters (25)
- 0:00Intro
- 0:35Arrays
- 1:25Unit
- 2:34Use Cases
- 3:12Comma Operator
- 4:25Overload Operators
- 7:10Overloads
- 7:43Member Pointer
- 10:37Syntax
- 14:58Standards
- 16:24NewByIns
- 17:42Floating Point Exceptions
- 19:38Not Numbers
- 20:37Not Syntax
- 22:31Declarators
- 26:54Functions Package
- 31:18Union
- 33:37Lambdas
- 35:05Vector
- 36:43Exceptions
- 38:02Jump
- 39:29Unified Behavior
- 43:00String Network
- 44:40Size of Index
- 45:54Division
related talks
53mC++ Features You Might Not Know
15mC++ WAT
52mNon-conforming C++: the Secrets the Committee Is Hiding From You
01h 23mThis is C++ - How to Use the C++ Superpower to Write Better C++ Code
56mCute C++ Tricks (and what you can learn from them): Part 2 of N
59mModern C++ for Fun and Profit: This isn’t your old C++
01h 28mProgramming in Modern C with a Sneak Peek into C23
57mSome Things C++ Does Right
