Namespaces
Variants
Views
Actions

std::auto_ptr::reset

From cppreference.com
< cpp‎ | memory‎ | auto ptr
Revision as of 07:53, 7 November 2012 by P12 (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
void reset( T* p = 0 );
</td>

<td class="t-dcl-nopad"> </td> <td > (deprecated) </td> </tr> Template:ddcl list end

Replaces the held pointer by p. If the currently held pointer is not null pointer, delete get() is called.

Contents

Parameters

p - a pointer to an object to manage

Return value

(none)

Exceptions

(none)

See also

Template:cpp/memory/auto ptr/dcl list release