Namespaces
Variants

std::auto_ptr<T>:: operator*, std::auto_ptr<T>:: operator->

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 & operator * ( ) const throw ( ) ;
(1) (obsoleto en C++11)
(eliminado en C++17)
T * operator - > ( ) const throw ( ) ;
(2) (obsoleto en C++11)
(eliminado en C++17)

Desreferencia un puntero al objeto gestionado. La primera versión requiere get ( ) ! = 0 .

Parámetros

(ninguno)

Valor de retorno

1) * get ( ) .
2) get ( ) .

Véase también

devuelve un puntero al objeto gestionado
(función miembro pública)