# std::experimental::shared_ptr<T>::get

> C++ Atlas: `cppatlas.com/w/cpp/experimental/shared_ptr/get` | Source: https://en.cppreference.com/w/cpp/experimental/shared_ptr/get | Domain: Technical specifications

Returns the stored pointer.

## Official Specification Summary (cppreference)

```cpp
element_type* get() const noexcept; // (library fundamentals TS)
```

Returns the stored pointer.

### Parameters

(none)

### Return value

The stored pointer.

### Notes

A `shared_ptr` may share ownership of an object while storing a pointer to another object. `get()` returns the stored pointer, not the managed pointer.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`operator*`](https://en.cppreference.com/w/cpp/experimental/shared_ptr/operator*), [`operator->`](https://en.cppreference.com/w/cpp/experimental/shared_ptr/operator*): dereferences the stored pointer (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/shared_ptr/get (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.