~/talk

unique_pseudofunction: N overloads for the price of 1

Talkat CppCon 2019 · 2019-09-15..09-20· [compilers-and-language-design]
links:none on file
slides:none on file

Implements unique_pseudofunction: a move-only type-erased callable that supports multiple overloads of operator() instead of one, with a custom compile-time vtable that reduces pointer jumps to one call indirection and enables overload-resolution at call sites. Constructors use SFINAE to allow only objects callable for all requested overloads. Provides efficient conversion from larger to smaller overload-sets without extra runtime indirection and an optional small-buffer optimization to store small callables in-place.

AI-written summary · about

  1. 0:00Introduction to unique_pseudofunction
  2. 2:57Motivation and limitations of std::function
  3. 7:32Designing the first unique_pseudofunction
  4. 15:50Handling move-only callables
  5. 23:54Supporting multiple overloads
  6. 32:04Small buffer optimization
  7. 39:17Summary and Q&A
~/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.