00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ACE_SWAP_H
00011 #define ACE_SWAP_H
00012 #include "ace/pre.h"
00013
00014 #include "ace/config-all.h"
00015
00016 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00017 # pragma once
00018 #endif
00019
00020
00021
00022
00023
00024
00025
00026 template<class T> class ACE_Swap
00027 {
00028 public:
00029
00030 static void swap (T &lhs, T &rhs);
00031 };
00032
00033 #if defined (__ACE_INLINE__)
00034 #include "ace/Swap.inl"
00035 #endif
00036
00037 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00038 #include "ace/Swap.cpp"
00039 #endif
00040
00041 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00042 #pragma implementation ("Swap.cpp")
00043 #endif
00044
00045 #include "ace/post.h"
00046 #endif