~/talk

Higher-order functions and function_ref

Talkat ACCU 2019 · 2019-04-10..04-13· [compilers-and-language-design, c-and-cpp]
slides:none on file

Proposal claims a lightweight, non-owning callable view that sits between templates and std::function and lands in LWG for C++20 consideration; implementation uses a simple type-erasure of a void pointer plus an invoke function pointer; production uses include consume_if, replaying command queues and packet/node callbacks; benchmarks (quick-bench, Simon Brand’s impl) show std::function ≈7× slower than function_ref when inlined while function_ref matches template performance when inlined; caveat: dangling-reference risk.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45YouTube channel
  3. 0:57Open source projects
  4. 1:14Outline
  5. 1:38Disclaimer
  6. 2:14Assumptions
  7. 2:26Higherorder functions
  8. 5:18Signal
  9. 6:34lambda expressions
  10. 7:56arrays remove
  11. 10:53variant
  12. 12:12use cases
  13. 12:29avoid repetition
  14. 13:49example
  15. 15:52local lambda
  16. 17:06execution policy
  17. 18:33unit testing
  18. 19:04abstraction
  19. 19:49structure
  20. 20:17for separated
  21. 21:51print
  22. 23:18consumeif
  23. 26:22Synchronicity
  24. 30:08Test drivers
  25. 31:51Higherorder functions vs other obstructions
  26. 32:14Threadsafe access wrapper
  27. 33:38Synchronized instance
  28. 35:37Implementation
  29. 37:28Benchmarking
  30. 37:55Iterators
  31. 42:11Recap
  32. 43:57Second half
  33. 44:19Function pointers
  34. 47:05Template parameters
  35. 48:27City functions
  36. 50:39Functionref
  37. 52:28Why use functionref
  38. 53:51Interface
  39. 54:26Examples
~/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.