~/talk

Higher order functions for ordinary C++ developers

Talkat NDC TechTown 2018 · 2018-09-27..09-30· [python]
slides:none on file

Shows how to write real higher‑order functions in modern C++17 and why returning lambdas with the auto return type beats std::function for performance; builds an IP address matcher by composing a select_address accessor with ip_matches via a small compose helper; demonstrates when_all using fold expressions, and uses Simon Brown’s tl::optional for .and_then/.or_else continuations. Claims: zero-cost inlined code for the composed predicates, std::function causes overhead, clang emits an unexpected null check (possible bug), and a tiny header library is published.

AI-written summary · about

  1. 0:00Start
  2. 0:31Background
  3. 2:48Example of a Higher-Order Function from the Standard Library
  4. 13:56Ip Interfaces
  5. 14:45Higher-Order Function for Matching Ip Addresses
  6. 18:44Fold Expressions
  7. 22:13Higher-Order Functions Templates
  8. 34:06Overhead
  9. 37:35Libraries for Higher-Order Functions
  10. 38:15Compiler Bugs
  11. 39:41Key Takeaway Messages
  12. 41:29Questions
~/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.