File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3365
3365
\end {codeblock }
3366
3366
3367
3367
\pnum
3368
- Any instance of \tcode {optional<T>} at any given time either contains a value or does not contain a value.
3369
- When an instance of \tcode {optional<T>} \defnx {contains a value}{contains a value!\idxcode {optional}},
3368
+ An object of type \tcode {optional<T>} at any given time
3369
+ either contains a value or does not contain a value.
3370
+ When an object of type \tcode {optional<T>}
3371
+ \defnx {contains a value}{contains a value!\idxcode {optional}},
3370
3372
it means that an object of type \tcode {T}, referred to as the optional object's \defnx {contained value}{contained value!\idxcode {optional}},
3371
3373
is nested within\iref {intro.object } the optional object.
3372
3374
When an object of type \tcode {optional<T>} is contextually converted to \tcode {bool},
3373
3375
the conversion returns \tcode {true} if the object contains a value;
3374
3376
otherwise the conversion returns \tcode {false}.
3375
3377
3376
3378
\pnum
3377
- When an \tcode {optional<T>} object contains a value,
3379
+ When an object of type \tcode {optional<T>} contains a value,
3378
3380
member \tcode {val} points to the contained value.
3379
3381
3380
3382
\pnum
4517
4519
\end {codeblock }
4518
4520
4519
4521
\pnum
4520
- An object of \tcode {optional<T\& >}
4522
+ An object of type \tcode {optional<T\& >}
4521
4523
\defnx {contains a value}{contains a value!\idxcode {optional.ref}}
4522
4524
if and only if \tcode {\exposidnc {val} != nullptr} is \tcode {true}.
4523
4525
When an \tcode {optional<T\& >} contains a value,
You can’t perform that action at this time.
0 commit comments