Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::atomic_shared_ptr >> std::experimental::atomic_shared_ptr Conversion Constructor

Construct an instance of std::experimental::atomic_shared_ptr with the supplied std::experimental::shared_ptr value.

atomic_shared_ptr(shared_ptr<T> p) noexcept;

Effects:

Constructs a new std::experimental::atomic_shared_ptr object with a value of p.

Throws:

Nothing.

Header

#include <experimental/atomic>

See Also