|
3342 | 3342 | Any instance of \tcode{optional<T>} at any given time either contains a value or does not contain a value.
|
3343 | 3343 | When an instance of \tcode{optional<T>} \defnx{contains a value}{contains a value!\idxcode{optional}},
|
3344 | 3344 | it means that an object of type \tcode{T}, referred to as the optional object's \defnx{contained value}{contained value!\idxcode{optional}},
|
3345 |
| -is allocated within the storage of the optional object. |
3346 |
| -Implementations are not permitted to use additional storage, such as dynamic memory, to allocate its contained value. |
| 3345 | +is nested within\iref{intro.object} the optional object. |
3347 | 3346 | When an object of type \tcode{optional<T>} is contextually converted to \tcode{bool},
|
3348 | 3347 | the conversion returns \tcode{true} if the object contains a value;
|
3349 | 3348 | otherwise the conversion returns \tcode{false}.
|
|
5144 | 5143 | of one of its alternative types or holds no value.
|
5145 | 5144 | When an instance of \tcode{variant} holds a value of alternative type \tcode{T},
|
5146 | 5145 | it means that a value of type \tcode{T}, referred to as the \tcode{variant}
|
5147 |
| -object's \defnx{contained value}{contained value!\idxcode{variant}}, is allocated within the storage of the |
| 5146 | +object's \defnx{contained value}{contained value!\idxcode{variant}}, |
| 5147 | +is nested within\iref{intro.object} the |
5148 | 5148 | \tcode{variant} object.
|
5149 |
| -Implementations are not permitted to use additional storage, such as dynamic |
5150 |
| -memory, to allocate the contained value. |
5151 | 5149 |
|
5152 | 5150 | \pnum
|
5153 | 5151 | All types in \tcode{Types} shall meet
|
|
7539 | 7537 | \pnum
|
7540 | 7538 | Any object of type \tcode{expected<T, E>} either
|
7541 | 7539 | contains a value of type \tcode{T} or
|
7542 |
| -a value of type \tcode{E} within its own storage. |
7543 |
| -Implementations are not permitted to use additional storage, |
7544 |
| -such as dynamic memory, |
7545 |
| -to allocate the object of type \tcode{T} or the object of type \tcode{E}. |
| 7540 | +a value of type \tcode{E} |
| 7541 | +nested within\iref{intro.object} it. |
7546 | 7542 | Member \exposid{has_val} indicates whether the \tcode{expected<T, E>} object
|
7547 | 7543 | contains an object of type \tcode{T}.
|
7548 | 7544 |
|
|
8925 | 8921 | \pnum
|
8926 | 8922 | Any object of type \tcode{expected<T, E>} either
|
8927 | 8923 | represents a value of type \tcode{T}, or
|
8928 |
| -contains a value of type \tcode{E} within its own storage. |
8929 |
| -Implementations are not permitted to use additional storage, |
8930 |
| -such as dynamic memory, to allocate the object of type \tcode{E}. |
| 8924 | +contains a value of type \tcode{E} |
| 8925 | +nested within\iref{intro.object} it. |
8931 | 8926 | Member \exposid{has_val} indicates whether the \tcode{expected<T, E>} object
|
8932 | 8927 | represents a value of type \tcode{T}.
|
8933 | 8928 |
|
|
0 commit comments