Files
cppdraft_translate/cppdraft/util/smartptr/weak/bad.md
2025-10-25 03:02:53 +03:00

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; };}

1

#

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;

2

#

Returns: An implementation-defined ntbs.