+// delete all hash elements
+//
+// NB: the class declaration of the hash elements must be visible from the
+// place where you use this macro, otherwise the proper destructor may not
+// be called (a decent compiler should give a warning about it, but don't
+// count on it)!
+#define WX_CLEAR_HASH_TABLE(array) \
+ { \
+ (array).BeginFind(); \
+ wxNode* it = (array).Next(); \
+ while( it ) \
+ { \
+ delete it->GetData(); \
+ it = (array).Next(); \
+ } \
+ (array).Clear(); \
+ }
+