~/talk

Awesome Macros That Do Nothing

Talkat CppCon 2019 · 2019-09-15..09-20· [compilers-and-language-design]
links:none on file
slides:none on file

Proposes using simple C++ macros as documentation-only annotations to show parameter direction and ownership, applied to an example function with five pointers so it’s clear which are inputs, which are outputs and which transfer ownership. Uses IN and OUT on parameters, and TRANS and ISO to indicate ownership semantics. The annotations compile away and do not enforce safety but make lifetime expectations explicit and immediately usable when reading APIs.

AI-written summary · about

  1. 0:00Introduction to API macros
  2. 0:34Labeling function parameters
  3. 1:45Defining ownership semantics
  4. 4:05Practical applications
~/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.