Swap.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 /**
00004  *  @file Swap.h
00005  *
00006  *  Swap.h,v 1.4 2006/01/27 10:42:47 jwillemsen Exp
00007  *
00008  * @author Carlos O'Ryan <coryan@uci.edu>
00009  */
00010 
00011 #ifndef ACE_SWAP_H
00012 #define ACE_SWAP_H
00013 #include /**/ "ace/pre.h"
00014 
00015 #include "ace/config-all.h"
00016 
00017 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00018 # pragma once
00019 #endif /* ACE_LACKS_PRAGMA_ONCE */
00020 
00021 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00022 
00023 /**
00024  * @class ACE_Swap
00025  *
00026  * @brief Defines a function to swap two variables.
00027  *
00028  * @deprecated This template is deprecated, you can use std::swap without
00029  * problems on all platforms.
00030  *
00031  */
00032 template<class T> class ACE_Swap
00033 {
00034 public:
00035   /// Swap two variables
00036   static void swap (T &lhs, T &rhs);
00037 };
00038 
00039 ACE_END_VERSIONED_NAMESPACE_DECL
00040 
00041 #if defined (__ACE_INLINE__)
00042 #include "ace/Swap.inl"
00043 #endif /* __ACE_INLINE__ */
00044 
00045 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00046 #include "ace/Swap.cpp"
00047 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
00048 
00049 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00050 #pragma implementation ("Swap.cpp")
00051 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
00052 
00053 #include /**/ "ace/post.h"
00054 #endif /* ACE_FUNCTOR_H */

Generated on Thu Nov 9 09:42:06 2006 for ACE by doxygen 1.3.6