~/lightning

Return Values Take A Closure Walk

Lightningat CppCon 2014 · on Sunday, 2014-09-07· [rust]
links:none on file
slides:none on file

Claim: pass return values up the stack without knowing their concrete type by decoupling call site and implementation. Implementation uses std::function type erasure instead of templating, creates a declared result variable captured by reference inside a wrapper lambda, calls the real callable, stores and returns the result, and relies on std::move prevents copies. Special-case metaprogramming handles void return and wrapping the result in boost::optional for failures reports errors back to the caller.

AI-written summary · about

~/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.