std::shared_ptr::operator*, std::shared_ptr::operator-> - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

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

From cppreference.com
< cpp‎ | memory‎ | shared ptr

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

Dereferences pointer to the managed object.

### [edit] Parameters

(none)

### [edit] Return value

1) reference to the managed object.

2) pointer to the managed object.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

get | returns a pointer to the managed object (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/memory/shared_ptr/operator*&oldid=58392"
Category:

- Todo no example