~/talk

Strong types for strong interfaces

Talkat Meeting C++ 2017 · 2017-11-09..11-11· [rust]
links:none on file
slides:none on file

A generic named_type wrapper demonstrates strong types for units, parameters and lambdas, with a reference variant enabled by SFINAE to avoid unwanted copies, and a make_named_function helper that wraps generic callables. CRTP-based CRTP skills opt in operators like hashing, streaming and conversion. Benchmarks show zero-cost with -O2 (identical generated code); differences appear at lower optimization and compile / debug-info can grow. Full implementation and examples (user-defined literals, chrono-like durations) live on GitHub.

AI-written summary · about

  1. 0:00Intro
  2. 0:27EXPRESSIVE CODE IN C++
  3. 3:00THE CIRCLE CLASS
  4. 4:21THE BUILDER PATTERN
  5. 5:26TAG DISPATCHING
  6. 7:48PRIOR ART
  7. 8:16NAMED TYPE
  8. 9:25PHANTOM TYPE
  9. 14:06STRONG UNITS
  10. 15:31PASSING BY COPY
  11. 16:39STD::BACK_INSERTER
  12. 18:01PASSING BY CONST REFERENCE
  13. 18:42PASSING BY REFERENCE
  14. 23:49PASSING LAMBDAS
  15. 26:22STRONG LAMBDAS
  16. 28:14STRONG GENERIC TYPES
  17. 30:45STD::CHRONO
  18. 32:32INHERITING FUNCTIONALITIES
  19. 35:13MODULAR FUNCTIONALITIES: HASHABLE
  20. 36:32CALLING FUNCTIONS ON STRONG TYPES
  21. 37:39CALLING METHODS ON STRONG TYPES
  22. 38:32COMPARING PERFORMANCE
  23. 40:56STRONG TYPES FOR STRONG INTERFACES
~/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.