Namespaces
Variants

std::auto_ptr<T>:: reset

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)
void reset ( T * p = 0 ) throw ( ) ;
(C++11에서 사용 중단됨)
(C++17에서 제거됨)

보유한 포인터를 p 로 교체합니다. 현재 보유한 포인터가 null 포인터가 아닌 경우, delete get ( ) 가 호출됩니다.

매개변수

p - 관리할 객체에 대한 포인터

반환값

(없음)

참고 항목

관리되는 객체의 소유권을 해제합니다
(public member function)