auto_ptr

Category: , By 人生有夢,築夢踏實
VC:DECLARE: "std::auto_ptr VariableName"

Typedefs
element_type
The type is a synonym for the template parameter Type.
Member Functions
auto_ptr
The constructor for objects of type auto_ptr.
get
The member function returns the stored pointer myptr.
release
The member replaces the stored pointer myptr with a null pointer and returns the previously stored pointer.
reset
The member function evaluates the expression delete myptr, but only if the stored pointer value myptr changes as a result of function call. It then replaces the stored pointer with ptr.
Operators
operator=
An assignment operator that transfers ownership from one auto_ptr object to another.
operator*
The dereferencing operator for objects of type auto_ptr.
operator->
The operator for allowing member access.
operator auto_ptr
Casts from one kind of auto_ptr to another kind of auto_ptr.
operator auto_ptr_ref
Casts from an auto_ptr to an auto_ptr_ref.
 

0 comments so far.

Something to say?

ARCHIVES