tmp/tmpy5ggg6d_/{from.md → to.md}
RENAMED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
### Class `bad_optional_access` <a id="optional.bad.access">[[optional.bad.access]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
|
|
|
| 4 |
class bad_optional_access : public exception {
|
| 5 |
public:
|
| 6 |
// see [exception] for the specification of the special member functions
|
| 7 |
const char* what() const noexcept override;
|
| 8 |
};
|
|
|
|
| 9 |
```
|
| 10 |
|
| 11 |
The class `bad_optional_access` defines the type of objects thrown as
|
| 12 |
exceptions to report the situation where an attempt is made to access
|
| 13 |
the value of an optional object that does not contain a value.
|
|
|
|
| 1 |
### Class `bad_optional_access` <a id="optional.bad.access">[[optional.bad.access]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
class bad_optional_access : public exception {
|
| 6 |
public:
|
| 7 |
// see [exception] for the specification of the special member functions
|
| 8 |
const char* what() const noexcept override;
|
| 9 |
};
|
| 10 |
+
}
|
| 11 |
```
|
| 12 |
|
| 13 |
The class `bad_optional_access` defines the type of objects thrown as
|
| 14 |
exceptions to report the situation where an attempt is made to access
|
| 15 |
the value of an optional object that does not contain a value.
|