Compartir a través de


auto_ptr::operator*

The dereferencing operator for objects of type auto_ptr.

Type& operator*( ) const throw( );

Return Value

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

Remarks

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

See Also

Reference

auto_ptr Class