Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Swap Class Template Reference

Defines a function to swap two variables. More...

#include <Swap.h>

List of all members.

Static Public Methods

void swap (T &lhs, T &rhs)
 Swap two variables. More...


Detailed Description

template<class T>
class ACE_Swap< T >

Defines a function to swap two variables.

Definition at line 26 of file Swap.h.


Member Function Documentation

template<class T>
ACE_INLINE void ACE_Swap< T >::swap T &    lhs,
T &    rhs
[static]
 

Swap two variables.

Definition at line 10 of file Swap.inl.

00011 {
00012   T tmp = lhs;
00013   lhs = rhs;
00014   rhs = tmp;
00015 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:57:12 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002