strange typedef for a newbie in C++

Dec 16, 2014 at 2:44pm
Hi,

I am a beginner in C++ and just came across a definition that is very strange to me with characters like & > and <.
Sorry, I am not allowed to put the code here.
Please tell me what the definition is and what should I learn about this?
 
typedef a class type(say A)   < a struct type (say B), a struct type (B)& > a class type (say C);	


The definition is something like this:
 
typedef Crect < SPoint, Spoint&> CNewDefine

Where:
CRect: a class
Spoint: a struct
CNewDefine: a class
Last edited on Dec 20, 2014 at 5:40am
Dec 16, 2014 at 3:07pm
Do you understand templates??
Dec 16, 2014 at 3:20pm
Hi,
I haven't study about this.
Is it related to this?
What should I learn?
Thanks!
Dec 20, 2014 at 4:55am
Could anyone give me a link so I can read up about this?
I don't know the name for search and can't search for it at all.
The definition is something like this:
 
typedef Crect < SPoint, Spoint&> CNewDefine

Where:
CRect: a class
Spoint: a struct
CNewDefine: a class

Thanks.
Last edited on Dec 20, 2014 at 5:33am
Dec 20, 2014 at 8:04am
closed account (SECMoG1T)
http://cppannotations.sourceforge.net/annotations/html/cplusplus21.html
Topic archived. No new replies allowed.