std::auto_ptr<T>::release_C++中文网
位置:首页 > C++ 参考手册 >动态内存管理 >std::auto_ptr > std::auto_ptr<T>::release
std::auto_ptr<T>::release
| T* release() throw(); |
(C++11 中弃用) (C++17 中移除) |
|
返回保有的指针。调用后 *this 保有空指针。
参数
(无)
返回值
get() 。
参阅
| 替换被管理对象 (公开成员函数) |
std::auto_ptr<T>::release_C++中文网
位置:首页 > C++ 参考手册 >动态内存管理 >std::auto_ptr > std::auto_ptr<T>::release
| T* release() throw(); |
(C++11 中弃用) (C++17 中移除) |
|
返回保有的指针。调用后 *this 保有空指针。
(无)
get() 。
| 替换被管理对象 (公开成员函数) |