]> git.saurik.com Git - wxWidgets.git/commitdiff
document wxDELETE() and wxDELETEA()
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Sep 2008 16:06:36 +0000 (16:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Sep 2008 16:06:36 +0000 (16:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 21a17fc0777eccd35c9a2e7afee088b4aed928b3..7d67449000313ea624c8b8ed881e34f649f3b7c7 100644 (file)
@@ -639,6 +639,15 @@ typedef short int WXTYPE;
             ptr = NULL;
         }
     }
+
+    // trivial implementation of std::swap() for primitive types
+    template <typename T>
+    inline void wxSwap(T& first, T& second)
+    {
+        T tmp(first);
+        first = second;
+        second = tmp;
+    }
 #endif /*__cplusplus*/
 
 /*  size of statically declared array */