0
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

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Salem
-1

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.

Votes + 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.
0
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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.