Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

auto_ptr::operator*

 

The dereferencing operator for objects of type auto_ptr.


Type& operator*( ) const throw( );

A reference to an object of type Type that the pointer owns.

The indirection operator returns *get. Hence, the stored pointer must not be null.

Example

For an example of how to use the member function, see auto_ptr::auto_ptr.

Requirements

Header: <memory>

Namespace: std

Show: