summaryrefslogtreecommitdiff
path: root/ace/Swap.inl
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-27 09:15:31 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-27 09:15:31 +0000
commit657496006c6f2f3c698720c6970d2ec438fbad86 (patch)
treee64ea6810a0f8be2b7c1f7fddddba75761c5797c /ace/Swap.inl
parent946a8659af08e969b5fc38318028e3e286b38a36 (diff)
downloadATCD-657496006c6f2f3c698720c6970d2ec438fbad86.tar.gz
ChangeLogTag:Wed Feb 27 01:12:32 2002 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'ace/Swap.inl')
-rw-r--r--ace/Swap.inl15
1 files changed, 15 insertions, 0 deletions
diff --git a/ace/Swap.inl b/ace/Swap.inl
new file mode 100644
index 00000000000..b1139ca3ffb
--- /dev/null
+++ b/ace/Swap.inl
@@ -0,0 +1,15 @@
+/**
+ * @file Swap.inl
+ *
+ * $Id$
+ *
+ * @author Carlos O'Ryan <coryan@uci.edu>
+ */
+
+template<class T> ACE_INLINE void
+ACE_Swap<T>::swap (T &lhs, T& rhs)
+{
+ T tmp = lhs;
+ lhs = rhs;
+ rhs = tmp;
+}