1.0 KiB
1.0 KiB
[util.smartptr.weak.bad]
20 Memory management library [mem]
20.3 Smart pointers [smartptr]
20.3.2 Shared-ownership pointers [util.sharedptr]
20.3.2.1 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 functionsconstexpr const char* what() const noexcept override; };}
An exception of type bad_weak_ptr is thrown by the shared_ptr constructor taking a weak_ptr.
constexpr const char* what() const noexcept override;
Returns: An implementation-defined ntbs.