~/talk

Deducing this Patterns

Talkat CppCon 2021 · on Wednesday, 2021-10-27· at 16:45· A) Aurora C/D, online· [rust]
slides:none on file

C++23 adds P0847 "Deducing this", making the implicit object parameter explicit and deducible so member functions learn the static most‑derived type and value category. Examples show getters that auto-generate all cv/ref overloads, builder chaining where CRTP disappears, lambdas that name their closure and enable recursive lambdas, and by‑value this allowing safe moves through computations. Code is exercised on Circle/Godbolt and the paper passes plenary, so the feature is implemented and usable in compilers that follow the proposal.

AI-written summary · about

  1. 0:00Start
  2. 2:14Origin Story
  3. 10:29Getter
  4. 17:44Builder Pattern
  5. 19:07No Class Templates
  6. 29:22Sphenae Friendly Callable Objects
  7. 32:29Lambdas
  8. 33:04The Lambda Expression
  9. 35:30Recursive Lambda
  10. 38:59Lambda Expressions
  11. 46:54The Template Method
  12. 47:56Template Method Pattern
  13. 48:37Method with an Explicit Object Parameter
  14. 53:00Advantages and Disadvantages
  15. 54:22Disadvantages
  16. 56:13Conclusion
  17. 57:18Questions
~/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.