2 ms·
T && gets you the semantics you're looking for. EDIT: Why are you booing me? I'm right.
by fluoridation 3y ago
T && gets you the semantics you're looking for.
EDIT: Why are you booing me? I'm right.
- devit 3y agoT&& doesn't run the T destructor when it's destroyed, which is the whole point of unique_ptr.