tmp/tmpe0fhg770/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Deprecated `shared_ptr` observers <a id="depr.util.smartptr.shared.obs">[[depr.util.smartptr.shared.obs]]</a>
|
| 2 |
+
|
| 3 |
+
The following member is defined in addition to those members specified
|
| 4 |
+
in [[util.smartptr.shared]]:
|
| 5 |
+
|
| 6 |
+
``` cpp
|
| 7 |
+
namespace std {
|
| 8 |
+
template<class T> class shared_ptr {
|
| 9 |
+
public:
|
| 10 |
+
bool unique() const noexcept;
|
| 11 |
+
};
|
| 12 |
+
}
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
``` cpp
|
| 16 |
+
bool unique() const noexcept;
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
*Returns:* `use_count() == 1`.
|
| 20 |
+
|