added copy ctor to wxHashTable

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
1999-10-27 23:33:05 +00:00
parent ecf9e593f8
commit 4e67bfc7a4
2 changed files with 24 additions and 0 deletions

View File

@@ -41,6 +41,11 @@ class WXDLLEXPORT wxHashTable: public wxObject
wxHashTable(int the_key_type = wxKEY_INTEGER, int size = 1000);
~wxHashTable(void);
// copy ctor and assignment operator
wxHashTable(const wxHashTable& table) { DoCopy(table); }
wxHashTable& operator=(const wxHashTable& table) { Clear(); DoCopy(table); return *this; }
void DoCopy(const wxHashTable& table);
void Destroy(void); // Robert Roebling
bool Create(int the_key_type = wxKEY_INTEGER, int size = 1000);