Namespaces
Variants
Views
Actions

std::auto_ptr::operator auto_ptr<Y>

From cppreference.com
< cpp‎ | memory‎ | auto ptr
Revision as of 08:05, 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 >
template< class Y >
operator auto_ptr_ref<Y>();
</td>

<td > (1) </td> <td > (deprecated) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
template< class Y >
operator auto_ptr<Y>();
</td>

<td > (2) </td> <td > (deprecated) </td> </tr> Template:ddcl list end

Converts *this to an auto_ptr for a different type Y.

1) Returns an implementation-defined type that holds a reference to *this. The implementation is allowed to provide the template with a different name or implement equivalent functionality in other ways.
2) Constructs a new auto_ptr with a pointer obtained by calling Template:rlpf.

Parameters

(none)

Return value

1) An implementation-defined type that holds a reference to *this
2) A auto_ptr with a pointer obtained by calling Template:rlpf.

Exceptions

(none)