smart_ptr::operator-> Method

Returns a pointer to the object to which this points. If the pointer is not set, this operator will fail with a null pointer exception.
Syntax:
pointer operator->();
const_pointer operator->() const;

Return value:

A pointer to the object to which this points.

See also: smart_ptr, smart_ptr::operator*

<< smart_ptr