~/lightning

Polymorphic Task

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

Implements a polymorphic task template that stores any one-shot callable like std::function but supports moving out payloads (unique_ptr) and uses placement new to choose between inline storage and heap allocation. Design includes a small-object optimization and an added virtualized move operation so move construction works via the concept interface. Prototype uses unique_ptr for large models, invokes via virtual invoke, and benchmarks reveal one extra pointer per invocation in some standard-library implementations which is reported for fixing.

AI-written summary · about

  1. 0:00Template in Ten Sean Parent
  2. 1:32What do you think?
  3. 6:59Polymorphic Task Template in Ten with Small Object Optimization
~/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.