Hi there,
Are there any experts out there ?
I know STL map only allow unique key but how about its element ?
I want the element to be unique too. Is there an easy way to do it ?
I can compare every element in the map and make sure it's unique but i am posting here for a better way.
eg grade_list["john"] = 'A';
The 'A' is the element and i want it to be unique for all element in the map. There's a reason for what i am doing.
Please help.
cheers