tmp/tmphioweb9k/{from.md → to.md}
RENAMED
|
@@ -1,40 +1,40 @@
|
|
| 1 |
##### Observers <a id="unique.ptr.single.observers">[[unique.ptr.single.observers]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
add_lvalue_reference_t<T> operator*() const;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Preconditions:* `get() != nullptr`.
|
| 8 |
|
| 9 |
*Returns:* `*get()`.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
-
pointer operator->() const noexcept;
|
| 13 |
```
|
| 14 |
|
| 15 |
*Preconditions:* `get() != nullptr`.
|
| 16 |
|
| 17 |
*Returns:* `get()`.
|
| 18 |
|
| 19 |
[*Note 4*: The use of this function typically requires that `T` be a
|
| 20 |
complete type. — *end note*]
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
-
pointer get() const noexcept;
|
| 24 |
```
|
| 25 |
|
| 26 |
*Returns:* The stored pointer.
|
| 27 |
|
| 28 |
``` cpp
|
| 29 |
-
deleter_type& get_deleter() noexcept;
|
| 30 |
-
const deleter_type& get_deleter() const noexcept;
|
| 31 |
```
|
| 32 |
|
| 33 |
*Returns:* A reference to the stored deleter.
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
-
explicit operator bool() const noexcept;
|
| 37 |
```
|
| 38 |
|
| 39 |
*Returns:* `get() != nullptr`.
|
| 40 |
|
|
|
|
| 1 |
##### Observers <a id="unique.ptr.single.observers">[[unique.ptr.single.observers]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr add_lvalue_reference_t<T> operator*() const noexcept(noexcept(*declval<pointer>()));
|
| 5 |
```
|
| 6 |
|
| 7 |
*Preconditions:* `get() != nullptr`.
|
| 8 |
|
| 9 |
*Returns:* `*get()`.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
+
constexpr pointer operator->() const noexcept;
|
| 13 |
```
|
| 14 |
|
| 15 |
*Preconditions:* `get() != nullptr`.
|
| 16 |
|
| 17 |
*Returns:* `get()`.
|
| 18 |
|
| 19 |
[*Note 4*: The use of this function typically requires that `T` be a
|
| 20 |
complete type. — *end note*]
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
+
constexpr pointer get() const noexcept;
|
| 24 |
```
|
| 25 |
|
| 26 |
*Returns:* The stored pointer.
|
| 27 |
|
| 28 |
``` cpp
|
| 29 |
+
constexpr deleter_type& get_deleter() noexcept;
|
| 30 |
+
constexpr const deleter_type& get_deleter() const noexcept;
|
| 31 |
```
|
| 32 |
|
| 33 |
*Returns:* A reference to the stored deleter.
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
+
constexpr explicit operator bool() const noexcept;
|
| 37 |
```
|
| 38 |
|
| 39 |
*Returns:* `get() != nullptr`.
|
| 40 |
|