~/talk

A Static Alternative to Virtual Functions, Using Expression SFINAE

Talkat CppCon 2016 · 2016-09-18..09-23· [c-and-cpp]
slides:none on file

A header-only, fully static replacement for virtual dispatch that uses Expression SFINAE and the void_t detection idiom to test whether the implementation type provides richer methods and to select either a direct call or a fallback implementation at compile time. The interface is a class template with a minimal basis API and optional extensions; implementations that supply optimized methods get inlined calls, the template instantiates only used paths, and there is no vtable overhead.

AI-written summary · about

  1. 0:00Intro
  2. 0:15The familiar interface
  3. 0:30The idea
  4. 1:05The implementation
  5. 1:22Autocompletion engine
  6. 1:54Implementation options
  7. 2:34Expression pattern
  8. 2:55Upshot
  9. 3:42Conclusion
~/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.