[util.smartptr.weak.bad] (original) (raw)
20 General utilities library [utilities]
20.11 Smart pointers [smartptr]
20.11.2 Class bad_weak_ptr [util.smartptr.weak.bad]
namespace std { class bad_weak_ptr : public exception { public: // see [exception] for the specification of the special member functions const char* what() const noexcept override; }; }
An exception of type bad_weak_ptr is thrown by the shared_ptrconstructor taking a weak_ptr.
const char* what() const noexcept override;
Returns:An implementation-defined ntbs.