typedef  map<string, Attr_info, less<string> > AttrMap;

i do not know what "map<", less and ">" represents?

What I little understood from the code is AttrMap is a collection of Attr_infos. If so how can i add a Attr_info into AttrMap?

could u plz help?
thanx

I don't know, maybe it's c++, like there are every kind of weird << and >> in cout... But at least it's not c. Following the typedef identifier should be a declaration, which mostly starts with a type, not with map> something... With typedef you define type, you can use this to declare another type, or array of another type, or use it in whatever way how you can use simple types like char and int.

Comments
One of the most absurd half-assed answers I have ever seen. If you are not sure, please don't reply and confuse others.
typedef map<string,Attr_info,less<string> > AttrMap;

i do not know what "map<", less and ">" represents?

What I little understood from the code is AttrMap is a collection of Attr_infos. If so how can i add a Attr_info into AttrMap?

could u plz help?
thanx

This question has already been answered. Start a new discussion instead.