~/talk

Two advanced PMR techniques in C++17/20

Talkat Meeting C++ 2021 · 2021-11-10..11-12· [rust]
links:none on file
slides:none on file

Covers polymorphic memory resources (monotonic_buffer_resource, pool_resource) and concrete tradeoffs, then demonstrates two techniques Winking Out and Localized Garbage Collection, with working code variants: C++20’s convenience new_object versus C++17’s two‑step allocate+construct, and a Bloomberg allocator comparison. Shows that reclaiming whole arenas avoids destructor recursion and stack overflow but invites UB if destructors have side effects, and explains why shared_ptr and allocator‑aware types don’t always mix — useful but expert‑only.

AI-written summary · about

  1. 0:00Introduction
  2. 11:12Allocators
  3. 17:20Questions
  4. 21:51Wingout
  5. 25:07Example code
  6. 27:21Problems
  7. 31:03Uneven behavior
  8. 32:56JSON data representation
  9. 34:50Protocol buffers
  10. 42:36Can we use smart pointers
  11. 44:04Polymorphic memory resources
  12. 45:48Distractors
  13. 46:41Chat pointer
  14. 47:11Summary
  15. 48:16Outro
~/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.