tmp/tmpteqdyqkl/{from.md → to.md}
RENAMED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
#### Class `bad_weak_ptr` <a id="util.smartptr.weakptr">[[util.smartptr.weakptr]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
namespace std {
|
| 5 |
-
class bad_weak_ptr: public std::exception {
|
| 6 |
-
public:
|
| 7 |
-
bad_weak_ptr() noexcept;
|
| 8 |
-
};
|
| 9 |
-
} // namespace std
|
| 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 `"bad_weak_ptr"`.
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|