다음을 통해 공유


auto_ptr::operator->

The operator for allowing member access.

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

반환 값

A member of the object that auto_ptr owns.

설명

The selection operator returns get( ), so that the expression ap->member behaves the same as ( ap.get( ) )->member, where ap is an object of class auto_ptr<Type>. Hence, the stored pointer must not be null, and Type must be a class, struct, or union type with a member member.

예제

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

요구 사항

헤더 <memory>

네임스페이스: std

참고 항목

참조

auto_ptr 클래스