Parameters
noneReturn value
A pointer to the element pointed by the auto_ptr object.If the auto_ptr object is not pointing to any object, a zero-value is returned.
X is auto_ptr's template parameter (i.e., the type pointed).
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Possible output:
p points to 100 |
See also
| auto_ptr::operator* | Dereference object (public member function) |
| auto_ptr::operator= | Release and copy auto_ptr (public member function) |
| auto_ptr::release | Release pointer (member function) |
