Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::weak_ptr >> std::experimental::weak_ptr default constructor

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

constexpr weak_ptr() noexcept;

Effects:

Constructs an empty std::experimental::weak_ptr.

Postconditions:

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

Throws:

Nothing.

Header

#include <experimental/atomic>

See Also