On this pagestd::auto_ptr<T>::operator*, std::auto_ptr<T>::operator-> Deprecated in C++11, Removed in C++17T& operator*() const throw(); (1)T* operator->() const throw(); (2) Dereferences a pointer to the managed object. The first version requires get() != 0. Parameters (none) Return value *get() get().
On this pagestd::auto_ptr<T>::operator*, std::auto_ptr<T>::operator-> Deprecated in C++11, Removed in C++17T& operator*() const throw(); (1)T* operator->() const throw(); (2) Dereferences a pointer to the managed object. The first version requires get() != 0. Parameters (none) Return value *get() get().