22
General utilities library
[utilities]
22.8
Expected objects
[expected]
22.8.6
Class template
expected
[expected.expected]
22.8.6.5
Swap
[expected.object.swap]
Table 67:
swap
(
expected
&
)
effects
[tab:expected.object.swap]
🔗
this
-
>
has_
value
(
)
!
this
-
>
has_
value
(
)
🔗
rhs
.
has_
value
(
)
equivalent to:
using
std
::
swap; swap
(
val
, rhs
.
val
)
;
calls
rhs
.
swap
(
*
this
)
🔗
!
rhs
.
has_
value
(
)
see below
equivalent to:
using
std
::
swap; swap
(
unex
, rhs
.
unex
)
;