Przejdź do głównej zawartości

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

Deprecated in C++11, Removed in C++17
T& 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

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

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

Deprecated in C++11, Removed in C++17
T& 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

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