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.

commented: One of the most absurd half-assed answers I have ever seen. If you are not sure, please don't reply and confuse others. -1
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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.