]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
Added wxDECLARE_ANY_TYPE(CLS, DECL) and documented for what kind of situation it...
[wxWidgets.git] / include / wx / vector.h
index 5375f9c5dfdbd161a5b676de2d9ee7b61a06771f..28230a9ea5c2d609836f9f8ccb890a9cbb2e556b 100644 (file)
@@ -195,6 +195,13 @@ public:
         clear();
     }
 
+    void swap(wxVector& v)
+    {
+        wxSwap(m_size, v.m_size);
+        wxSwap(m_capacity, v.m_capacity);
+        wxSwap(m_values, v.m_values);
+    }
+
     void clear()
     {
         // call destructors of stored objects: