I have this structure, and map datastructure like :
#include <map>
struct category {
int id;
std::string name;
};
std::map<int, category> categories;
Now, using categories I want to display element "name" which is in structure category. But I am not able to access it. Can anyone help?
Thanks