Update of /cvsroot/cppunit/cppunit2/include/cpptl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30084/include/cpptl
Modified Files:
config.h
Log Message:
* added swap()
* added size_type
Index: config.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/config.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** config.h 23 Feb 2005 22:45:56 -0000 1.7
--- config.h 27 Feb 2005 09:56:18 -0000 1.8
***************
*** 125,128 ****
--- 125,130 ----
# endif
+ typedef unsigned int size_type;
+
template<class T>
struct Type
***************
*** 148,151 ****
--- 150,162 ----
};
+ template<class T>
+ inline void
+ swap( T &left, T &right )
+ {
+ T temp( left );
+ left = right;
+ right = temp;
+ }
+
} // namespace CppTL
|