Lines Matching refs:swap
25 template<typename T> void swap(T &, T &);
26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) { in do_swap()
27 swap(a, b); in do_swap()
32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member)));
36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member)));
55 void swap(X &, X &) noexcept;
59 static_assert(noexcept(px.swap(px)), "");
60 static_assert(!noexcept(pi.swap(pi)), "");
63 template<typename T> void swap(T &, T &);
66 …void swap(CLASS &other) noexcept(noexcept(swap(*this, other))); // expected-error {{too many argum…
71 static_assert(!noexcept(pi.swap(pi)), ""); // expected-note {{in instantiation of}}