|
4171 | 4171 | \effects
|
4172 | 4172 | \begin{itemize}
|
4173 | 4173 | \item
|
4174 |
| -If neither \tcode{*this} nor \tcode{rhs} holds a value, there is no effect. Otherwise, |
| 4174 | +If neither \tcode{*this} nor \tcode{rhs} holds a value, there is no effect. |
4175 | 4175 | \item
|
4176 |
| -if \tcode{*this} holds a value but \tcode{rhs} does not, destroys the value |
4177 |
| -contained in \tcode{*this} and sets \tcode{*this} to not hold a value. Otherwise, |
| 4176 | +Otherwise, if \tcode{*this} holds a value but \tcode{rhs} does not, destroys the value |
| 4177 | +contained in \tcode{*this} and sets \tcode{*this} to not hold a value. |
4178 | 4178 | \item
|
4179 |
| -if \tcode{index() == $j$}, assigns the value contained in \tcode{rhs} |
4180 |
| -to the value contained in \tcode{*this}. Otherwise, |
| 4179 | +Otherwise, if \tcode{index() == $j$}, assigns the value contained in \tcode{rhs} |
| 4180 | +to the value contained in \tcode{*this}. |
4181 | 4181 | \item
|
4182 |
| -if either \tcode{is_nothrow_copy_constructible_v<$\tcode{T}_j$>} or |
4183 |
| -\tcode{!is_nothrow_move_constructible_v<$\tcode{T}_j$>} is \tcode{true}, |
4184 |
| -equivalent to \tcode{emplace<$j$>(get<$j$>(rhs))}. Otherwise, |
| 4182 | +Otherwise, if either \tcode{is_nothrow_copy_constructible_v<$\tcode{T}_j$>} |
| 4183 | +is \tcode{true} or |
| 4184 | +\tcode{is_nothrow_move_con\-structible_v<$\tcode{T}_j$>} is \tcode{false}, |
| 4185 | +equivalent to \tcode{emplace<$j$>(get<$j$>(rhs))}. |
4185 | 4186 | \item
|
4186 |
| -equivalent to \tcode{operator=(variant(rhs))}. |
| 4187 | +Otherwise, equivalent to \tcode{operator=(variant(rhs))}. |
4187 | 4188 | \end{itemize}
|
4188 | 4189 |
|
4189 | 4190 | \pnum
|
|
4213 | 4214 | \effects
|
4214 | 4215 | \begin{itemize}
|
4215 | 4216 | \item
|
4216 |
| -If neither \tcode{*this} nor \tcode{rhs} holds a value, there is no effect. Otherwise, |
| 4217 | +If neither \tcode{*this} nor \tcode{rhs} holds a value, there is no effect. |
4217 | 4218 | \item
|
4218 |
| -if \tcode{*this} holds a value but \tcode{rhs} does not, destroys the value |
4219 |
| -contained in \tcode{*this} and sets \tcode{*this} to not hold a value. Otherwise, |
| 4219 | +Otherwise, if \tcode{*this} holds a value but \tcode{rhs} does not, destroys the value |
| 4220 | +contained in \tcode{*this} and sets \tcode{*this} to not hold a value. |
4220 | 4221 | \item
|
4221 |
| -if \tcode{index() == $j$}, assigns \tcode{get<$j$>(std::move(rhs))} to |
4222 |
| -the value contained in \tcode{*this}. Otherwise, |
| 4222 | +Otherwise, if \tcode{index() == $j$}, assigns \tcode{get<$j$>(std::move(rhs))} to |
| 4223 | +the value contained in \tcode{*this}. |
4223 | 4224 | \item
|
4224 |
| -equivalent to \tcode{emplace<$j$>(get<$j$>(std::move(rhs)))}. |
| 4225 | +Otherwise, equivalent to \tcode{emplace<$j$>(get<$j$>(std::move(rhs)))}. |
4225 | 4226 | \end{itemize}
|
4226 | 4227 |
|
4227 | 4228 | \pnum
|
|
4262 | 4263 | \begin{itemize}
|
4263 | 4264 | \item
|
4264 | 4265 | If \tcode{*this} holds a $\tcode{T}_j$, assigns \tcode{std::forward<T>(t)} to
|
4265 |
| -the value contained in \tcode{*this}. Otherwise, |
| 4266 | +the value contained in \tcode{*this}. |
4266 | 4267 | \item
|
4267 |
| -if \tcode{is_nothrow_constructible_v<$\tcode{T}_j$, T> ||} |
| 4268 | +Otherwise, if \tcode{is_nothrow_constructible_v<$\tcode{T}_j$, T> ||} |
4268 | 4269 | \tcode{!is_nothrow_move_constructible_v<$\tcode{T}_j$>} is \tcode{true},
|
4269 |
| -equivalent to \tcode{emplace<$j$>(std::forward<T>(t))}. Otherwise, |
| 4270 | +equivalent to \tcode{emplace<$j$>(std::forward<T>(t))}. |
4270 | 4271 | \item
|
4271 |
| -equivalent to \tcode{operator=(variant(std::forward<T>(t)))}. |
| 4272 | +Otherwise, equivalent to \tcode{operator=(variant(std::forward<T>(t)))}. |
4272 | 4273 | \end{itemize}
|
4273 | 4274 |
|
4274 | 4275 | \pnum
|
|
4494 | 4495 | \effects
|
4495 | 4496 | \begin{itemize}
|
4496 | 4497 | \item
|
4497 |
| -if \tcode{valueless_by_exception() \&\& rhs.valueless_by_exception()} no effect. Otherwise, |
| 4498 | +If \tcode{valueless_by_exception() \&\& rhs.valueless_by_exception()} no effect. |
4498 | 4499 | \item
|
4499 |
| -if \tcode{index() == rhs.index()}, calls \tcode{swap(get<$i$>(*this), get<$i$>(rhs))} where $i$ is \tcode{index()}. Otherwise, |
| 4500 | +Otherwise, if \tcode{index() == rhs.index()}, calls \tcode{swap(get<$i$>(*this), get<$i$>(rhs))} where $i$ is \tcode{index()}. |
4500 | 4501 | \item
|
4501 |
| -exchanges values of \tcode{rhs} and \tcode{*this}. |
| 4502 | +Otherwise, exchanges values of \tcode{rhs} and \tcode{*this}. |
4502 | 4503 | \end{itemize}
|
4503 | 4504 |
|
4504 | 4505 | \pnum
|
|
0 commit comments