Namespaces
Variants
Views
Actions

std::shared_ptr::operator*, std::shared_ptr::operator->

From cppreference.com
< cpp‎ | memory‎ | shared ptr
Revision as of 14:55, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

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

<td >
T& operator*() const;
</td>

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

<td >
T* operator->() const;
</td>

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

Dereferences pointer to the managed object.

Contents

Parameters

(none)

Return value

1) reference to the managed object.

2) pointer to the managed object.

Example

See also

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