Skip to content

Commit e879f02

Browse files
burblebeetkoeppe
authored andcommitted
LWG3951 §[expected.object.swap]: Using value() instead of has_value()
1 parent 997bbeb commit e879f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/utilities.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8101,7 +8101,7 @@
81018101
equivalent to: \tcode{using std::swap; swap(\exposid{unex}, rhs.\exposid{unex});} \\
81028102
\end{floattable}
81038103

8104-
For the case where \tcode{rhs.value()} is \tcode{false} and
8104+
For the case where \tcode{rhs.has_value()} is \tcode{false} and
81058105
\tcode{this->has_value()} is \tcode{true}, equivalent to:
81068106
\begin{codeblock}
81078107
if constexpr (is_nothrow_move_constructible_v<E>) {
@@ -9184,7 +9184,7 @@
91849184
equivalent to: \tcode{using std::swap; swap(\exposid{unex}, rhs.\exposid{unex});} \\
91859185
\end{floattable}
91869186

9187-
For the case where \tcode{rhs.value()} is \tcode{false} and
9187+
For the case where \tcode{rhs.has_value()} is \tcode{false} and
91889188
\tcode{this->has_value()} is \tcode{true}, equivalent to:
91899189
\begin{codeblock}
91909190
construct_at(addressof(@\exposid{unex}@), std::move(rhs.@\exposid{unex}@));

0 commit comments

Comments
 (0)