Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fluoridation
· 3y ago · 0 comments
T && gets you the semantics you're looking for.
EDIT: Why are you booing me? I'm right.
Comments
[–]
devit
3y ago
T&& doesn't run the T destructor when it's destroyed, which is the whole point of unique_ptr.