Comment on The missing C++ smart pointerparentComments−fluoridation3yT && gets you the semantics you're looking for.EDIT: Why are you booing me? I'm right.−devit3yT&& doesn't run the T destructor when it's destroyed, which is the whole point of unique_ptr.
Comments
T && gets you the semantics you're looking for.
EDIT: Why are you booing me? I'm right.
T&& doesn't run the T destructor when it's destroyed, which is the whole point of unique_ptr.