Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::shared_ptr >> std::experimental::shared_ptr nullptr constructor

Construct an empty std::experimental::shared_ptr instance.

constexpr shared_ptr(nullptr_t) noexcept;

Effects:

Constructs an empty std::experimental::shared_ptr.

Postconditions:

p.get()==nullptr and p.use_count()==0 for a newly constructed object p.

Throws:

Nothing.

Header

#include <experimental/atomic>

See Also