22 General utilities library [utilities]

22.8 Expected objects [expected]

22.8.7 Partial specialization of expected for void types [expected.void]

22.8.7.5 Swap [expected.void.swap]

Table 65: swap(expected&) effects [tab:expected.void.swap]
this->has_­value()
!this->has_­value()
rhs.has_­value()
no effects
calls rhs.swap(*this)
!rhs.has_­value()
see below
equivalent to: using std​::​swap; swap(unex, rhs.unex);