Namespaces
Variants
Views
Actions

std::auto_ptr::operator*, std::auto_ptr::operator->

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 

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

<tr class="t-dcl ">

<td >
T& operator*() const;
</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 >
T* operator->() const;
</td>

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

Dereferences a pointer to the managed object. The first version requires get() != 0.

Contents

Parameters

(none)

Return value

1) *get().
2) get().

Exceptions

(none)

See also

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