以下成员源于类 <QtAlgorithms> 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
| (deprecated)void | qSwap (T & var1 , T & var2 ) | 
This function is deprecated. We strongly advise against using it in new code.
						使用
						
std::swap
						
						代替。
					
Exchanges the values of variables var1 and var2 .
范例:
double pi = 3.14; double e = 2.71; qSwap(pi, e); // pi == 2.71, e == 3.14