|
auto_ptr::operator*public member function
X& operator*() const throw(); Dereference object Returns a reference to the value pointed by the auto_ptr object.The auto_ptr object must point to some object (must not be a null pointer) in order to be dereferenciable. ParametersnoneReturn valueA reference to the element pointed by the auto_ptr object.X is auto_ptr's template parameter (i.e., the type pointed). Example
Output:
See also
|