namespace std { class bad_weak_ptr : public exception { public: bad_weak_ptr() noexcept; }; }
An exception of type bad_weak_ptr is thrown by the shared_ptr constructor taking a weak_ptr.
bad_weak_ptr() noexcept;
Postconditions: what() returns an implementation-defined ntbs.