~/lightning

function_ref

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

A proposal called function_ref provides a constrained callable type that behaves like a non-owning lightweight reference to any callable matching a signature so higher order functions accept stateful lambdas without owning or heap overhead. It compares performance to function pointers and templates showing small runtime cost unlike std::function and avoids template bloat. The minimal implementation stores a void pointer to the target and a function pointer to a erased call wrapper so callers must guarantee the referent’s lifetime.

AI-written summary · about

  1. 0:00Start
  2. 0:28Lambda Expressions
  3. 3:25Template Parameters
  4. 4:55String View for Callable Objects
~/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.