ACE_Swap< T > Class Template Reference

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

#include <Swap.h>

List of all members.

Static Public Member Functions

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


Detailed Description

template<class T>
class ACE_Swap< T >

Defines a function to swap two variables.

Deprecated:
This template is deprecated, you can use std::swap without problems on all platforms.

Definition at line 32 of file Swap.h.


Member Function Documentation

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

Swap two variables.

Definition at line 14 of file Swap.inl.

00015 {
00016   T tmp = lhs;
00017   lhs = rhs;
00018   rhs = tmp;
00019 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:30:39 2006 for ACE by doxygen 1.3.6