std::auto_ptr::reset
STD::AUTO[医]PTR::重置
void reset( T* p = 0 | | (deprecated) |
---|
将持有的指针替换为p
如果当前持有的指针不是空指针,delete get()
叫做。
参数
p | - | a pointer to an object to manage |
---|
返回值
%280%29
例外
%280%29
另见
release | releases ownership of the managed object (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。