tmp/tmpm2f3f5w0/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Class `bad_weak_ptr` <a id="util.smartptr.weak.bad">[[util.smartptr.weak.bad]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
class bad_weak_ptr : public exception {
|
| 6 |
+
public:
|
| 7 |
+
bad_weak_ptr() noexcept;
|
| 8 |
+
};
|
| 9 |
+
}
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
An exception of type `bad_weak_ptr` is thrown by the `shared_ptr`
|
| 13 |
+
constructor taking a `weak_ptr`.
|
| 14 |
+
|
| 15 |
+
``` cpp
|
| 16 |
+
bad_weak_ptr() noexcept;
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
*Postconditions:* `what()` returns an *implementation-defined* NTBS.
|
| 20 |
+
|