X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=version2%2Fsrc%2FC%2Fhashset.h;h=ab096fbfae57dcd29281996e1718436db8f1d2c5;hb=0b9aca2b62c74f68652b170a92271a98d5b96666;hp=7874e652aefd05d7337eea9aeacdb0b7f841b219;hpb=5d76024703d601d6f7205c2cb0300ac4cbeffd1c;p=iotcloud.git diff --git a/version2/src/C/hashset.h b/version2/src/C/hashset.h index 7874e65..ab096fb 100644 --- a/version2/src/C/hashset.h +++ b/version2/src/C/hashset.h @@ -18,10 +18,10 @@ struct Linknode { Linknode<_Key> *next; }; -template +template class Hashset; -template, bool (*equals) (_Key, _Key) = defaultEquals<_Key> > +template, bool (*equals)(_Key, _Key) = defaultEquals<_Key> > class SetIterator { public: SetIterator(Linknode<_Key> *_curr, Hashset <_Key, _KeyInt, _Shift, hash_function, equals> *_set) : @@ -76,7 +76,7 @@ private: Hashset <_Key, _KeyInt, _Shift, hash_function, equals> *set; }; -template, bool (*equals) (_Key, _Key) = defaultEquals<_Key> > +template, bool (*equals)(_Key, _Key) = defaultEquals<_Key> > class Hashset { public: Hashset(unsigned int initialcapacity = 16, double factor = 0.5) :