Lines Matching defs:swap
22 // Make the test types non-copyable so that generic std::swap is not valid.
36 void swap(A&, A&) {}
38 void swap(A&, B&) {}
39 void swap(B&, A&) {}
41 void swap(A&, C&) {} // missing swap(C, A)
42 void swap(D&, C&) {}
49 void swap(M&&, M&&) {}
52 friend void swap(DeletedSwap&, DeletedSwap&) = delete;
62 void swap(T&, T&) {}
85 // test that a deleted swap is correctly handled.
89 // test that a swap with ambiguous overloads is handled correctly.