##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::atomic_shared_ptr::atomic_shared_ptr

From cppreference.com
< cpp‎ | experimental‎ | atomic shared ptr

constexpr atomic_shared_ptr(); | (1) |
constexpr atomic_shared_ptr( shared_ptr<T> desired ); | (2) |
atomic_shared_ptr( const atomic_shared_ptr& ) = delete; | (3) |

Constructs a new `atomic_shared_ptr` object.

1) The default constructor initializes the object to an empty state.
2) Initializes the underlying `shared_ptr<T>` with `desired`. The initialization is not atomic.
3) Atomic variables are not `CopyConstructible`.

### [edit] Parameters

desired | - | value to initialize with

### [edit] Exceptions

1-2)
`noexcept` specification:
noexcept
Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/atomic_shared_ptr/atomic_shared_ptr&oldid=91427"
Category:

- unconditionally noexcept

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template