~/talk

Argument dependent lookup (ADL): name taxonomy, customization points & use cases

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
slides:none on file

Explains exactly when ADL adds associated namespaces/entities (class, enum, underlying types, template arguments, pointer-to-member rules) and shows how unqualified dependent names trigger ADL at instantiation; demonstrates real pitfalls (unqualified std::algorithms and a nonportable std::tie overload case) and builds a working customization point object for swap using SFINAE and a poison pill fallback + is_adl_swappable trait; the resulting swap object is first‑class, does ADL correctly, and lets algorithms accept user overloads safely.

AI-written summary · about

  1. 0:00Introduction
  2. 1:37Why ADL
  3. 9:16Unqualified lookup
  4. 14:04Function type lookup
  5. 18:21Template types
  6. 19:45Dependent names
  7. 20:36Argument dependent lookup
  8. 23:26Friends and ADL
  9. 27:29Unconstrained templates
  10. 30:03Iterators
  11. 32:31Guidelines
  12. 33:55Customization points
  13. 38:44Customization point objects
  14. 45:35Questions
~/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.