00001
00002
00003
00004
00005
00006
00007
00008
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
00020
00021 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 template<class T> class ACE_Swap
00033 {
00034 public:
00035
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
00044
00045 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00046 #include "ace/Swap.cpp"
00047 #endif
00048
00049 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00050 #pragma implementation ("Swap.cpp")
00051 #endif
00052
00053 #include "ace/post.h"
00054 #endif