~/talk

Named Arguments from Scratch

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp]
links:none on file
slides:none on file

Live coding builds a small named-arguments library in C++17 using Boost.Hana and Compiler Explorer, showing an adapter that accepts a hana::map of keys to values, extracts a hana::tuple in the required order, and uses hana::unpack to call the function — it compiles and prints the expected result. The demo implements a user-defined literal for argument names and a operator= overload to produce hana::pair entries, discusses perfect forwarding, default-argument handling, and posts the full Argo-based code on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 1:43Why do we do this
  3. 3:33Tools
  4. 4:30Argument Passing
  5. 5:56Compiler Explorer
  6. 8:53Data Structures
  7. 12:04Extracting Values
  8. 14:48Refactoring
  9. 17:13Context for lambda
  10. 18:49Order of arguments
  11. 22:29Map
  12. 25:24Userdefined literal
  13. 30:27Refactor
  14. 34:17Adapters
  15. 41:39Name parameters
  16. 45:22Why
  17. 46:39References
  18. 47:11Questions
~/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.