document wxDELETE() and wxDELETEA()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-09-15 16:06:36 +00:00
parent 6a8e61e0f6
commit 6ebd2716cf

View 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 */