Lifetime and Ownership - Ownership is Decided Locally
summary
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








