Lines Matching defs:swap
11 // constexpr void swap(expected& rhs) noexcept(see below);
34 concept HasMemberSwap = requires(std::expected<T, E> x, std::expected<T, E> y) { x.swap(y); };
39 void swap(NotSwappable&, NotSwappable&) = delete;
49 friend void swap(NotMoveConstructible&, NotMoveConstructible&) {}
60 friend void swap(MoveMayThrow&, MoveMayThrow&) noexcept {}
76 { x.swap(y) } noexcept;
88 friend void swap(SwapMayThrow&, SwapMayThrow&) noexcept(false) {}
102 x.swap(y);
116 x.swap(y);
132 e1.swap(e2);
151 e1.swap(e2);
170 e1.swap(e2);
189 e1.swap(e2);
209 x.swap(y);
212 // _before_ constructing the member objects inside the `swap`.
222 x.swap(y);
225 // _before_ constructing the member objects inside the `swap`.
237 x.swap(y);
246 x.swap(y);
263 e1.swap(e2);
276 e1.swap(e2);
291 x.swap(y);
296 // flag when rolling back the swap.
306 x.swap(y);
310 // flag when rolling back the swap.