<memory>

std::bad_weak_ptr

class bad_weak_ptr: public exception;
Bad weak pointer

Exception thrown by shared_ptr's constructor when constructed with an expired weak_ptr.

bad_weak_ptrinherits from the standard exception class.

Member what returns"bad_weak_ptr".

成员函数