+#define WX_DECLARE_USER_EXPORTED_HASH(el, list, hash, usergoo) \
+ _WX_DECLARE_HASH(el, list, hash, class usergoo)
+
+// 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(); \
+ }
+