~/talk

These 10 tricks that only library implementors know!

Talkat ACCU 2018 · 2018-04-11..04-14· [c-and-cpp]
links:none on file
links:none on file
slides:none on file

Covers concrete library techniques: how empty base class optimization and the new no_unique_address attribute shave bytes from unique_ptr/tuple by avoiding stored empty deleters or allocators; how allocator::construct/destroy can change initialization behavior; how non-deduced contexts and decay/remove_cvref avoid accidental overloads; how optional/pair mirror wrapped type special-member and explicitness properties via conditional base classes; and how iterator_traits/tag-dispatch (and if constexpr with concepts) pick faster algorithms for random-access versus input iterators.

AI-written summary · about

  1. 0:00Introduction
  2. 1:38Trix
  3. 2:35Empty Base Classes
  4. 4:45No Unique Address
  5. 7:53No Unique Pointer
  6. 11:55Construct from Anything
  7. 13:41Constraints
  8. 19:08Template metaprogramming
  9. 25:59Common type trait
  10. 33:09Generic option
  11. 34:21Copy constructors
  12. 35:59Default constructors
  13. 38:39Copy constructor
  14. 40:39Special members
  15. 45:09Explicit constructors
  16. 51:29Unique pointers
~/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.