X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=hashset.h;h=d660620fe9cef6574ec15b18a2ad6e4d62f033d4;hp=140b85fb0d27943adfe3ea3bc7f08ed704c28382;hb=25d73096cfc14c655f94b01bb235cc5efd1d5696;hpb=110873aa95a98a28561165f803d21a9b050205ed;ds=inline diff --git a/hashset.h b/hashset.h index 140b85fb..d660620f 100644 --- a/hashset.h +++ b/hashset.h @@ -18,12 +18,10 @@ struct LinkNode { LinkNode<_Key> *next; }; -template +template class HashSet; -template, bool (*equals)(_Key, _Key) = default_equals<_Key> > +template, bool (*equals)(_Key, _Key) = default_equals<_Key> > class HSIterator { public: HSIterator(LinkNode<_Key> *_curr, HashSet <_Key, _KeyInt, _Shift, _malloc, _calloc, _free, hash_function, equals> * _set) : @@ -78,7 +76,7 @@ private: HashSet <_Key, _KeyInt, _Shift, _malloc, _calloc, _free, hash_function, equals> * set; }; -template, bool (*equals)(_Key, _Key) = default_equals<_Key> > +template, bool (*equals)(_Key, _Key) = default_equals<_Key> > class HashSet { public: HashSet(unsigned int initialcapacity = 16, double factor = 0.5) :