From Jason Turner

[optional.nullopt]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpx7l9veq9/{from.md → to.md} +16 -0
tmp/tmpx7l9veq9/{from.md → to.md} RENAMED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### No-value state indicator <a id="optional.nullopt">[[optional.nullopt]]</a>
2
+
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 structure type used as a unique type
9
+ to indicate the state of not containing a value for `optional` objects.
10
+ In particular, `optional<T>` has a constructor with `nullopt_t` as a
11
+ single argument; this indicates that an optional object not containing a
12
+ value 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
+