Namespaces
Variants

std::auto_ptr<T>:: release

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
T * release ( ) throw ( ) ;
(C++11で非推奨)
(C++17で削除)

保持されているポインタを解放します。呼び出し後、 * this はヌルポインタを保持します。

パラメータ

(なし)

戻り値

get ( ) .

関連項目

管理対象オブジェクトを置き換える
(public member function)