跳到主要内容

std::auto_ptr<T>::release

C++11 中已弃用,C++17 中已移除
T* release() throw();

释放所持有的指针。调用后,*this 将持有空指针。

参数

(无)

返回值

get().

std::auto_ptr<T>::release

C++11 中已弃用,C++17 中已移除
T* release() throw();

释放所持有的指针。调用后,*this 将持有空指针。

参数

(无)

返回值

get().