PDA

View Full Version : Quick and Advance typedef question



akvino
November 12th, 2010, 05:57 PM
Can someone explain this syntax? PRIHashItem is a class?
typedef Hashint32<PRIHashItem, int>* HashPtr;

worksofcraft
November 12th, 2010, 06:01 PM
Hashint32 is evidently a template combining that class and an int as well and then your HashPtr type is being defined to point to one of these.

akvino
November 12th, 2010, 06:08 PM
Hashint32 is evidently a template combining that class and an int as well and then your HashPtr type is being defined to point to one of these.

I just came to the same conclusion and was able to look up .h file for it.
It is a template....