Condividi tramite


CAutoPtr::operator ->

The pointer-to-member operator.

T * operator ->( ) const throw( );

Return Value

Returns the value of the CAutoPtr::m_p data member variable.

Remarks

Use this operator to call a method in a class pointed to by the CAutoPtr object. In debug builds, an assertion failure will occur if the CAutoPtr points to NULL.

Example

See the example in the CAutoPtr Overview.

Requirements

Header: atlbase.h

See Also

Reference

CAutoPtr Class