Home | History | Annotate | Download | only in util

Lines Matching defs:Swap

43 // state, incurs only the cost of a swap of LargeObjectLists, which is
50 // find a swap() function for T, falling back to std::swap() when
51 // necessary. If you overload swap() for your type in its namespace,
52 // or if you specialize std::swap() for your type, (see
56 // Alternatively, you could explicitly control which swap function is
67 // For std::swap().
92 Traits::Swap(Traits::UnwrapMutable(&wrapper_), t);
117 // your own swap method. First, consider the pre-defined traits
121 // everything else) and provide your own Swap() method.
206 static void Swap(T* t1, T* t2) {
209 using std::swap;
210 swap(*t1, *t2);
214 // Most STL containers have by-reference swap() member functions,
215 // although they usually already overload std::swap() to use those.
218 static void Swap(T* t1, T* t2) {
219 t1->swap(*t2);
223 // Most Google-style objects have by-pointer Swap() member functions
227 static void Swap(T* t1, T* t2) {
228 t1->Swap(t2);