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

Re: what does this line say? 80 80

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
Re: what does this line say? 80 80
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

Re: what does this line say? 80 80
Be a part of the DaniWeb community

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