~/talk

Concepts in 60: Everything you need to know and nothing you don't

Talkat CppCon 2018 · 2018-09-23..09-28· [compilers-and-language-design, c-and-cpp]
links:none on file
slides:none on file

Concepts arrive as a way to constrain templates so the compiler checks syntactic requirements at use and prevents bizarre instantiations; the Concepts TS is implemented in GCC since 6 and has a Clang port, and -std=c++2a or -fconcepts-ts enable the features. Examples show min_element requiring a ForwardIterator and a requires clause that the iterator value be TotallyOrdered, explain NaN and preconditions, describe overload subsumption via a small compiler theorem prover, and recommend starting from concrete examples and erring on stronger constraints.

AI-written summary · about

  1. 0:00Introduction
  2. 3:03GCC
  3. 4:10Generic Libraries
  4. 6:03Algorithms
  5. 9:25Generic Programming
  6. 12:03Templates
  7. 14:51Concepts
  8. 16:53Where do concepts come from
  9. 17:52Can a type be a type
  10. 19:28Types concepts and values
  11. 21:12Whats a constraint
  12. 21:44Whats a concept
  13. 24:17Generic Algorithm
  14. 28:06Constraint
  15. 29:18Preconditions
  16. 33:10Syntax operations
  17. 35:58Over constraining
  18. 43:19Specialization
  19. 45:59Subsumption
  20. 53:57Questions
~/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.