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)