|
2930 | 2930 | \begin{itemdescr}
|
2931 | 2931 | \pnum
|
2932 | 2932 | \effects
|
2933 |
| -If \tcode{rhs} contains a value, initializes the contained value as if |
2934 |
| -direct-non-list-initializing an object of type \tcode{T} with the expression \tcode{*rhs}. |
| 2933 | +If \tcode{rhs} contains a value, direct-non-list-initializes the contained value |
| 2934 | +with \tcode{*rhs}. |
2935 | 2935 |
|
2936 | 2936 | \pnum
|
2937 | 2937 | \ensures
|
|
2961 | 2961 |
|
2962 | 2962 | \pnum
|
2963 | 2963 | \effects
|
2964 |
| -If \tcode{rhs} contains a value, initializes the contained value as if |
2965 |
| -direct-non-list-initializing an object of type \tcode{T} with the expression \tcode{std::move(*rhs)}. |
| 2964 | +If \tcode{rhs} contains a value, direct-non-list-initializes the contained value |
| 2965 | +with \tcode{std::move(*rhs)}. |
2966 | 2966 | \tcode{rhs.has_value()} is unchanged.
|
2967 | 2967 |
|
2968 | 2968 | \pnum
|
|
2993 | 2993 |
|
2994 | 2994 | \pnum
|
2995 | 2995 | \effects
|
2996 |
| -Initializes the contained value as if direct-non-list-initializing an object of type \tcode{T} with the arguments \tcode{std::forward<Args>(args)...}. |
| 2996 | +Direct-non-list-initializes the contained value with \tcode{std::forward<Args>(args)...}. |
2997 | 2997 |
|
2998 | 2998 | \pnum
|
2999 | 2999 | \ensures
|
|
3021 | 3021 |
|
3022 | 3022 | \pnum
|
3023 | 3023 | \effects
|
3024 |
| -Initializes the contained value as if direct-non-list-initializing an object of type \tcode{T} with the arguments \tcode{il, std::forward<Args>(args)...}. |
| 3024 | +Direct-non-list-initializes the contained value with \tcode{il, std::forward<Args>(args)...}. |
3025 | 3025 |
|
3026 | 3026 | \pnum
|
3027 | 3027 | \ensures
|
|
3050 | 3050 |
|
3051 | 3051 | \pnum
|
3052 | 3052 | \effects
|
3053 |
| -Initializes the contained value as if direct-non-list-initializing |
3054 |
| -an object of type \tcode{T} with the expression \tcode{std::forward<U>(v)}. |
| 3053 | +Direct-non-list-initializes the contained value with \tcode{std::forward<U>(v)}. |
3055 | 3054 |
|
3056 | 3055 | \pnum
|
3057 | 3056 | \ensures
|
|
3094 | 3093 | \pnum
|
3095 | 3094 | \effects
|
3096 | 3095 | If \tcode{rhs} contains a value,
|
3097 |
| -initializes the contained value as if direct-non-list-initializing |
3098 |
| -an object of type \tcode{T} with the expression \tcode{*rhs}. |
| 3096 | +direct-non-list-initializes the contained value with \tcode{*rhs}. |
3099 | 3097 |
|
3100 | 3098 | \pnum
|
3101 | 3099 | \ensures
|
|
3136 | 3134 | \pnum
|
3137 | 3135 | \effects
|
3138 | 3136 | If \tcode{rhs} contains a value,
|
3139 |
| -initializes the contained value as if direct-non-list-initializing |
3140 |
| -an object of type \tcode{T} with the expression \tcode{std::move(*rhs)}. |
| 3137 | +direct-non-list-initializes the contained value with \tcode{std::move(*rhs)}. |
3141 | 3138 | \tcode{rhs.has_value()} is unchanged.
|
3142 | 3139 |
|
3143 | 3140 | \pnum
|
|
3212 | 3209 |
|
3213 | 3210 | \rowhdr{\tcode{rhs} contains a value} &
|
3214 | 3211 | assigns \tcode{*rhs} to the contained value &
|
3215 |
| -initializes the contained value as if direct-non-list-initializing an object of type \tcode{T} with \tcode{*rhs} \\ |
| 3212 | +direct-non-list-initializes the contained value with \tcode{*rhs} \\ |
3216 | 3213 | \rowsep
|
3217 | 3214 |
|
3218 | 3215 | \rowhdr{\tcode{rhs} does not contain a value} &
|
|
3264 | 3261 |
|
3265 | 3262 | \rowhdr{\tcode{rhs} contains a value} &
|
3266 | 3263 | assigns \tcode{std::move(*rhs)} to the contained value &
|
3267 |
| -initializes the contained value as if direct-non-list-initializing an object of type \tcode{T} with \tcode{std::move(*rhs)} \\ |
| 3264 | +direct-non-list-initializes the contained value with \tcode{std::move(*rhs)} \\ |
3268 | 3265 | \rowsep
|
3269 | 3266 |
|
3270 | 3267 | \rowhdr{\tcode{rhs} does not contain a value} &
|
|
3314 | 3311 |
|
3315 | 3312 | \pnum
|
3316 | 3313 | \effects
|
3317 |
| -If \tcode{*this} contains a value, assigns \tcode{std::forward<U>(v)} to the contained value; otherwise initializes the contained value as if direct-non-list-initializing object of type \tcode{T} with \tcode{std::forward<U>(v)}. |
| 3314 | +If \tcode{*this} contains a value, assigns \tcode{std::forward<U>(v)} to the contained value; otherwise direct-non-list-initializes the contained value with \tcode{std::forward<U>(v)}. |
3318 | 3315 |
|
3319 | 3316 | \pnum
|
3320 | 3317 | \ensures
|
|
3363 | 3360 |
|
3364 | 3361 | \rowhdr{\tcode{rhs} contains a value} &
|
3365 | 3362 | assigns \tcode{*rhs} to the contained value &
|
3366 |
| -initializes the contained value as if direct-non-list-initializing |
3367 |
| -an object of type \tcode{T} with \tcode{*rhs} \\ |
| 3363 | +direct-non-list-initializes the contained value with \tcode{*rhs} \\ |
3368 | 3364 | \rowsep
|
3369 | 3365 |
|
3370 | 3366 | \rowhdr{\tcode{rhs} does not contain a value} &
|
|
3427 | 3423 |
|
3428 | 3424 | \rowhdr{\tcode{rhs} contains a value} &
|
3429 | 3425 | assigns \tcode{std::move(*rhs)} to the contained value &
|
3430 |
| -initializes the contained value as if direct-non-list-initializing |
3431 |
| -an object of type \tcode{T} with \tcode{std::move(*rhs)} \\ |
| 3426 | +direct-non-list-initializes the contained value with \tcode{std::move(*rhs)} \\ |
3432 | 3427 | \rowsep
|
3433 | 3428 |
|
3434 | 3429 | \rowhdr{\tcode{rhs} does not contain a value} &
|
|
3468 | 3463 |
|
3469 | 3464 | \pnum
|
3470 | 3465 | \effects
|
3471 |
| -Calls \tcode{*this = nullopt}. Then initializes the contained value as if direct-non-list-initializing an object of type \tcode{T} with the arguments \tcode{std::forward<Args>(args)...}. |
| 3466 | +Calls \tcode{*this = nullopt}. Then direct-non-list-initializes the contained value |
| 3467 | +with \tcode{std::forward\brk{}<Args>(args)...}. |
3472 | 3468 |
|
3473 | 3469 | \pnum
|
3474 | 3470 | \ensures
|
|
3499 | 3495 |
|
3500 | 3496 | \pnum
|
3501 | 3497 | \effects
|
3502 |
| -Calls \tcode{*this = nullopt}. Then initializes the contained value as if direct-non-list-initializing an object of type \tcode{T} with the arguments \tcode{il, std::forward<Args>(args)...}. |
| 3498 | +Calls \tcode{*this = nullopt}. Then direct-non-list-initializes the contained value with |
| 3499 | +\tcode{il, std::\brk{}forward<Args>(args)...}. |
3503 | 3500 |
|
3504 | 3501 | \pnum
|
3505 | 3502 | \ensures
|
|
3543 | 3540 |
|
3544 | 3541 | \rowhdr{\tcode{rhs} contains a value} &
|
3545 | 3542 | calls \tcode{swap(*(*this), *rhs)} &
|
3546 |
| -initializes the contained value of \tcode{*this} as if |
3547 |
| -direct-non-list-initializing an object of type \tcode{T} with the expression \tcode{std::move(*rhs)}, |
| 3543 | +direct-non-list-initializes the contained value of \tcode{*this} |
| 3544 | +with \tcode{std::move(*rhs)}, |
3548 | 3545 | followed by \tcode{rhs.val->T::\~T()};
|
3549 | 3546 | postcondition is that \tcode{*this} contains a value and \tcode{rhs} does not contain a value \\
|
3550 | 3547 | \rowsep
|
3551 | 3548 |
|
3552 | 3549 | \rowhdr{\tcode{rhs} does not contain a value} &
|
3553 |
| -initializes the contained value of \tcode{rhs} as if |
3554 |
| -direct-non-list-initializing an object of type \tcode{T} with the expression \tcode{std::move(*(*this))}, |
| 3550 | +direct-non-list-initializes the contained value of \tcode{rhs} |
| 3551 | +with \tcode{std::move(*(*this))}, |
3555 | 3552 | followed by \tcode{val->T::\~T()};
|
3556 | 3553 | postcondition is that \tcode{*this} does not contain a value and \tcode{rhs} contains a value &
|
3557 | 3554 | no effect \\
|
|
3810 | 3807 |
|
3811 | 3808 | \pnum
|
3812 | 3809 | \returns
|
3813 |
| -If \tcode{*this} does not contain a value, \tcode{optional<U>()}; |
3814 |
| -otherwise, an \tcode{optional<U>} object |
3815 |
| -whose contained value is initialized |
3816 |
| -as if direct-non-list-initializing an object of type \tcode{U} |
3817 |
| -with \tcode{invoke(std::\linebreak forward<F>(f), value())}. |
| 3810 | +If \tcode{*this} contains a value, an \tcode{optional<U>} object |
| 3811 | +whose contained value is direct-non-list-initialized with |
| 3812 | +\tcode{invoke(std::forward<F>(f), value())}; |
| 3813 | +otherwise, \tcode{optional<U>()}. |
3818 | 3814 | \end{itemdescr}
|
3819 | 3815 |
|
3820 | 3816 | \indexlibrarymember{transform}{optional}
|
|
3843 | 3839 |
|
3844 | 3840 | \pnum
|
3845 | 3841 | \returns
|
3846 |
| -If \tcode{*this} does not contain a value, \tcode{optional<U>()}; |
3847 |
| -otherwise, an \tcode{optional<U>} object |
3848 |
| -whose contained value is initialized |
3849 |
| -as if direct-non-list-initializing an object of type \tcode{U} with |
3850 |
| -\tcode{invoke(std::\linebreak forward<F>(f), std::move(value()))}. |
| 3842 | +If \tcode{*this} contains a value, an \tcode{optional<U>} object |
| 3843 | +whose contained value is direct-non-list-initialized with |
| 3844 | +\tcode{invoke(std::forward<F>(f), std::move(value()))}; |
| 3845 | +otherwise, \tcode{optional<U>()}. |
3851 | 3846 | \end{itemdescr}
|
3852 | 3847 |
|
3853 | 3848 | \indexlibrarymember{or_else}{optional}
|
|
4778 | 4773 | \pnum
|
4779 | 4774 | \effects
|
4780 | 4775 | Initializes \tcode{*this} to hold the alternative type $\tcode{T}_j$ and
|
4781 |
| -direct-initializes the contained value as if direct-non-list-initializing it |
4782 |
| -with \tcode{std::forward<T>(t)}. |
| 4776 | +direct-non-list-initializes the contained value with \tcode{std::forward<T>(t)}. |
4783 | 4777 |
|
4784 | 4778 | \pnum
|
4785 | 4779 | \ensures
|
|
4812 | 4806 |
|
4813 | 4807 | \pnum
|
4814 | 4808 | \effects
|
4815 |
| -Initializes the contained value as if direct-non-list-initializing |
4816 |
| -an object of type \tcode{T} |
4817 |
| -with the arguments \tcode{std::forward<Args>(args)...}. |
| 4809 | +Direct-non-list-initializes the contained value of type \tcode{T} |
| 4810 | +with \tcode{std::forward<Args>(args)...}. |
4818 | 4811 |
|
4819 | 4812 | \pnum
|
4820 | 4813 | \ensures
|
|
4846 | 4839 |
|
4847 | 4840 | \pnum
|
4848 | 4841 | \effects
|
4849 |
| -Initializes the contained value as if direct-non-list-initializing |
4850 |
| -an object of type \tcode{T} |
4851 |
| -with the arguments \tcode{il, std::forward<Args>(args)...}. |
| 4842 | +Direct-non-list-initializes the contained value of type \tcode{T} |
| 4843 | +with \tcode{il, std::forward<Args>(\brk{}args)...}. |
4852 | 4844 |
|
4853 | 4845 | \pnum
|
4854 | 4846 | \ensures
|
|
4881 | 4873 |
|
4882 | 4874 | \pnum
|
4883 | 4875 | \effects
|
4884 |
| -Initializes the contained value as if direct-non-list-initializing |
4885 |
| -an object of type $\tcode{T}_I$ |
4886 |
| -with the arguments \tcode{std::forward<Args>(args)...}. |
| 4876 | +Direct-non-list-initializes the contained value of type $\tcode{T}_I$ |
| 4877 | +with \tcode{std::forward<Args>(args)...}. |
4887 | 4878 |
|
4888 | 4879 | \pnum
|
4889 | 4880 | \ensures
|
|
4917 | 4908 |
|
4918 | 4909 | \pnum
|
4919 | 4910 | \effects
|
4920 |
| -Initializes the contained value as if direct-non-list-initializing |
4921 |
| -an object of type $\tcode{T}_I$ |
4922 |
| -with the arguments \tcode{il, std::forward<Args>(args)...}. |
| 4911 | +Direct-non-list-initializes the contained value of type $\tcode{T}_I$ |
| 4912 | +with \tcode{il, std::forward<Args>(\brk{}args)...}. |
4923 | 4913 |
|
4924 | 4914 | \pnum
|
4925 | 4915 | \ensures
|
|
5194 | 5184 | \effects
|
5195 | 5185 | Destroys the currently contained value if \tcode{valueless_by_exception()}
|
5196 | 5186 | is \tcode{false}.
|
5197 |
| -Then initializes the contained value as if direct-non-list-initializing |
5198 |
| -a value of type $\tcode{T}_I$ |
| 5187 | +Then direct-non-list-initializes the contained value of type $\tcode{T}_I$ |
5199 | 5188 | with the arguments \tcode{std::forward<Ar\-gs>(args)...}.
|
5200 | 5189 |
|
5201 | 5190 | \pnum
|
|
5236 | 5225 | \effects
|
5237 | 5226 | Destroys the currently contained value if \tcode{valueless_by_exception()}
|
5238 | 5227 | is \tcode{false}.
|
5239 |
| -Then initializes the contained value as if direct-non-list-initializing |
5240 |
| -a value of type $\tcode{T}_I$ |
5241 |
| -with the arguments \tcode{il, std::forward<Args>(args)...}. |
| 5228 | +Then direct-non-list-initializes the contained value of type $\tcode{T}_I$ |
| 5229 | +with \tcode{il, std::forward<Args>(args)...}. |
5242 | 5230 |
|
5243 | 5231 | \pnum
|
5244 | 5232 | \ensures
|
|
6074 | 6062 |
|
6075 | 6063 | \pnum
|
6076 | 6064 | \effects
|
6077 |
| -Initializes the contained value as if direct-non-list-initializing an object of |
6078 |
| -type \tcode{VT} with the arguments \tcode{std::forward<Args>(args)...}. |
| 6065 | +Direct-non-list-initializes the contained value of type \tcode{VT} |
| 6066 | +with \tcode{std::forward<Args>(args)...}. |
6079 | 6067 |
|
6080 | 6068 | \pnum
|
6081 | 6069 | \ensures
|
|
6107 | 6095 |
|
6108 | 6096 | \pnum
|
6109 | 6097 | \effects
|
6110 |
| -Initializes the contained value as if direct-non-list-initializing an object of |
6111 |
| -type \tcode{VT} with the arguments \tcode{il, std::forward<Args>(args)...}. |
| 6098 | +Direct-non-list-initializes the contained value of type \tcode{VT} |
| 6099 | +with \tcode{il, std::forward<Args>(\brk{}args)...}. |
6112 | 6100 |
|
6113 | 6101 | \pnum
|
6114 | 6102 | \ensures
|
|
6228 | 6216 | \pnum
|
6229 | 6217 | \effects
|
6230 | 6218 | Calls \tcode{reset()}.
|
6231 |
| -Then initializes the contained value as if direct-non-list-initializing |
6232 |
| -an object of type \tcode{VT} with the arguments \tcode{std::forward<Args>(args)...}. |
| 6219 | +Then direct-non-list-initializes the contained value of type \tcode{VT} |
| 6220 | +with \tcode{std::for\-ward<Args>(args)...}. |
6233 | 6221 |
|
6234 | 6222 | \pnum
|
6235 | 6223 | \ensures
|
|
6271 | 6259 |
|
6272 | 6260 | \pnum
|
6273 | 6261 | \effects
|
6274 |
| -Calls \tcode{reset()}. Then initializes the contained value |
6275 |
| -as if direct-non-list-initializing an object of type \tcode{VT} with the arguments |
6276 |
| -\tcode{il, std::forward<Args>(args)...}. |
| 6262 | +Calls \tcode{reset()}. Then direct-non-list-initializes the contained value |
| 6263 | +of type \tcode{VT} with \tcode{il, std::forward<Args>(args)...}. |
6277 | 6264 |
|
6278 | 6265 | \pnum
|
6279 | 6266 | \ensures
|
|
0 commit comments