Lines Matching defs:swap
11 // constexpr void swap(expected& rhs) noexcept(see below);
31 concept HasMemberSwap = requires(std::expected<void, E> x, std::expected<void, E> y) { x.swap(y); };
36 void swap(NotSwappable&, NotSwappable&) = delete;
43 friend void swap(NotMoveConstructible&, NotMoveConstructible&) {}
52 friend void swap(MoveMayThrow&, MoveMayThrow&) noexcept {}
58 { x.swap(y) } noexcept;
67 friend void swap(SwapMayThrow&, SwapMayThrow&) noexcept(false) {}
78 x.swap(y);
88 x.swap(y);
104 e1.swap(e2);
120 e1.swap(e2);
135 x.swap(y);
138 // _before_ constructing the member object inside the `swap`.
149 x.swap(y);
158 x.swap(y);
176 e1.swap(e2);
191 e1.swap(e2);
205 x.swap(y);