23 General utilities library [utilities]

23.11 Smart pointers [smartptr]

23.11.2 Shared-ownership pointers [util.smartptr]

23.11.2.1 Class bad_ยญweak_ยญptr [util.smartptr.weak.bad]

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.