tmp/tmpee5t2u63/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Observers <a id="any.observers">[[any.observers]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
bool has_value() const noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Returns:* `true` if `*this` contains an object, otherwise `false`.
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
const type_info& type() const noexcept;
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
*Returns:* `typeid(T)` if `*this` has a contained value of type `T`,
|
| 14 |
+
otherwise `typeid(void)`.
|
| 15 |
+
|
| 16 |
+
[*Note 1*: Useful for querying against types known either at compile
|
| 17 |
+
time or only at runtime. — *end note*]
|
| 18 |
+
|