tmp/tmpvgxdy2z0/{from.md → to.md}
RENAMED
|
@@ -3,14 +3,14 @@
|
|
| 3 |
``` cpp
|
| 4 |
struct nullopt_t{see below};
|
| 5 |
inline constexpr nullopt_t nullopt(unspecified);
|
| 6 |
```
|
| 7 |
|
| 8 |
-
The struct `nullopt_t` is an empty
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
Type `nullopt_t` shall not have a default constructor or an
|
| 15 |
initializer-list constructor, and shall not be an aggregate.
|
| 16 |
|
|
|
|
| 3 |
``` cpp
|
| 4 |
struct nullopt_t{see below};
|
| 5 |
inline constexpr nullopt_t nullopt(unspecified);
|
| 6 |
```
|
| 7 |
|
| 8 |
+
The struct `nullopt_t` is an empty class type used as a unique type to
|
| 9 |
+
indicate the state of not containing a value for `optional` objects. In
|
| 10 |
+
particular, `optional<T>` has a constructor with `nullopt_t` as a single
|
| 11 |
+
argument; this indicates that an optional object not containing a value
|
| 12 |
+
shall be constructed.
|
| 13 |
|
| 14 |
Type `nullopt_t` shall not have a default constructor or an
|
| 15 |
initializer-list constructor, and shall not be an aggregate.
|
| 16 |
|