summaryrefslogtreecommitdiff
path: root/ace/Swap.inl
blob: 195f1559f69f4658bbe031d087e62c2012dba421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -*- C++ -*-

/**
 * @file Swap.inl
 *
 * $Id$
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

template<class T> ACE_INLINE void
ACE_Swap<T>::swap (T &lhs, T& rhs)
{
  T tmp = lhs;
  lhs = rhs;
  rhs = tmp;
}

ACE_END_VERSIONED_NAMESPACE_DECL