Apologies for my oversight. From the auto_ptr
documentation;
http://www.cplusplus.com/reference/memory/auto_ptr/release/
std::auto_ptr::release
Release pointer
Sets the auto_ptr
internal pointer to null pointer (which indicates it points to no object) without destructing the object currently pointed by the auto_ptr
.