Lines Matching defs:swap
104 void swap(ScopedGeneric& other) {
105 // Standard swap idiom: 'using std::swap' ensures that std::swap is
106 // present in the overload set, but we call swap unqualified so that
108 using std::swap;
109 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_));
110 swap(data_.generic, other.data_.generic);
168 void swap(const ScopedGeneric<T, Traits>& a,
170 a.swap(b);