~/talk

C++ Concepts "Lite" in Practice

Talkat ACCU 2016 · on Wednesday, 2016-04-20· [c-and-cpp, compilers-and-language-design]
name:Roger Orr
links:none on file
slides:none on file

Concepts-Lite arrives as a usable TS in the GCC trunk, providing a requires clause and named concepts like equality_comparable that replace many SFINAE hacks. Templates gain clearer diagnostics and constrained overload resolution (constructors can overload on constraints instead of default-parameter tricks), and early adopters report double-digit percent compile-time reductions. The implementation is interoperable with existing headers via abbreviated and full constraint forms and successfully rejects ill-formed instantiations earlier.

AI-written summary · about

  1. 0:00Concepts Lite in Practice
  2. 4:49Run-time polymorphism
  3. 5:42Comple time polymorphism
  4. 9:01Template troubles
  5. 11:39How, and why, did we get here?
  6. 18:33Ler's build up from a trivial example
  7. 19:26What about type conversion?
  8. 20:28Generalising the function
  9. 21:08General Templatising the function
  10. 22:34Further extending the template
  11. 27:24Constraining the template
  12. 29:11magic.h
  13. 32:45Using 'requires
  14. 34:47Using a named concept
  15. 36:53Using a named variable concept
  16. 39:19Named concepts
  17. 47:34Concepts - first reflection
  18. 48:49Constraints and interfaces
  19. 50:30Simplifying complex overloads
  20. 56:38Concepts simplifying overloads
~/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.