~/talk

Lifetime and Ownership - Ownership is Decided Locally

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

Proposes a smart pointer called "putter" that uses a boolean strong flag to decide deletion, has no atomic ref count, and makes copies defaults to weak ownership while moves transfer strength; destructor deletes the owned object only if the local strong flag is set. Tests create 100-deep call stacks repeated 100,000 times and show unique_ptr is fastest, putter a little faster than shared_ptr, and ownership can be decided locally at the last use so lifetime is a tight lower bound.

AI-written summary · about

~/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.