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 ( ) ;
(obsoleto en C++11)
(eliminado en C++17)

Libera el puntero retenido. Después de la llamada * this mantiene el puntero nulo.

Parámetros

(ninguno)

Valor de retorno

get ( ) .

Véase también

reemplaza el objeto gestionado
(función miembro pública)