Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | memory‎ | shared ptr
Revision as of 22:13, 31 May 2013 by P12bot (Talk | contribs)

 
 
 
 
 
T& operator*() const;
(1)
T* operator->() const;
(2)

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

returns the stored pointer
(public member function) [edit]