From Jason Turner

[expected.object.swap]

Diff to HTML by rtfpessoa

tmp/tmpyvco17o0/{from.md → to.md} RENAMED
@@ -19,12 +19,12 @@ constexpr void swap(expected& rhs) noexcept(see below);
19
 
20
  | \topline | `this->has_value()` | `!this->has_value()` |
21
  | -------- | ------------------- | -------------------- |
22
 
23
 
24
- For the case where `rhs.value()` is `false` and `this->has_value()` is
25
- `true`, equivalent to:
26
 
27
  ``` cpp
28
  if constexpr (is_nothrow_move_constructible_v<E>) {
29
  E tmp(std::move(rhs.unex));
30
  destroy_at(addressof(rhs.unex));
 
19
 
20
  | \topline | `this->has_value()` | `!this->has_value()` |
21
  | -------- | ------------------- | -------------------- |
22
 
23
 
24
+ For the case where `rhs.has_value()` is `false` and `this->has_value()`
25
+ is `true`, equivalent to:
26
 
27
  ``` cpp
28
  if constexpr (is_nothrow_move_constructible_v<E>) {
29
  E tmp(std::move(rhs.unex));
30
  destroy_at(addressof(rhs.unex));