~/talk

C++ Concepts and Ranges

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
slides:none on file

Concrete changes to C++20 are demonstrated: actual concept syntax, shortforms for constrained auto, and recent San Diego edits that alter return-type checking and shortcut rules. Examples show how requires expressions produce clearer compile errors, how customization point objects implement ADL-safe swap and begin/end, and how ranges return dangling-safe iterator wrappers for temporaries. Range views, adapters (filter transform join), and two available implementations (range-v3 and a GCC-only fork) are exercised, with a few accepted fixes still pending.

AI-written summary · about

  1. 0:00Intro
  2. 1:38How do you feel about that interface?
  3. 2:32Why concepts?
  4. 6:50What are concepts?
  5. 9:07San Diego 2018: Updated shorthand notation
  6. 10:06San Diego 2018: New terse notation
  7. 13:18requires expression
  8. 15:23Core language concepts
  9. 17:06Why we need a new kind of customization point?
  10. 19:01Customization point objects
  11. 22:59Comparison concepts
  12. 23:42Object concepts
  13. 25:53Equality preserving expressions
  14. 26:50Callable concepts
  15. 29:08Readable traits and iter_value_t
  16. 31:31Iterator concepts: Readable
  17. 31:52Iterator concepts: Weakly Incrementable
  18. 32:45Iterator concepts: Iterator
  19. 32:57Iterator concepts: Sentinel
  20. 33:14Iterator concepts: SizedSentinel
  21. 33:46Iterator concepts: InputIterator
  22. 34:49Iterator concepts: Contiguous Iterator
  23. 35:05Default sentinel
  24. 36:06Unreachable sentinel
  25. 37:26Common Iterators
  26. 40:26Concept Range
  27. 42:05Customization point: enable_view
  28. 49:07Views vs Range Adaptor Objects
  29. 49:52Function objects
  30. 50:42Projection
  31. 51:32Algorithms Lookup
  32. 55:14Take aways
  33. 56:42Implementations
~/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.