From: Vadim Zeitlin Date: Mon, 15 Sep 2008 16:06:36 +0000 (+0000) Subject: document wxDELETE() and wxDELETEA() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ebd2716cf13aed16dad60ab35b3ddfffc8c7174 document wxDELETE() and wxDELETEA() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 21a17fc077..7d67449000 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -639,6 +639,15 @@ typedef short int WXTYPE; ptr = NULL; } } + + // trivial implementation of std::swap() for primitive types + template + inline void wxSwap(T& first, T& second) + { + T tmp(first); + first = second; + second = tmp; + } #endif /*__cplusplus*/ /* size of statically declared array */