V
Vandana
Hello All,
I have a question regarding multimaps. The reason I am using
multimap is because for a key, there
can be more than 1 value. The value I am storing is a simple struct
which has the following form.
struct myStruct {
string name;
int val;
}
So the multimap defintion looks like this
typedef multimap<int, myStruct> mymultimap;
In the program, I populate 2 of these multimaps & I have to compare
them.
For each key, I must find out the difference in their values, whether
both have same values.
My question is: what is the most efficient way to compare multimaps.
Am I correct about using a multimap for my problem?
Thanks for your time & help.
Vandana
I have a question regarding multimaps. The reason I am using
multimap is because for a key, there
can be more than 1 value. The value I am storing is a simple struct
which has the following form.
struct myStruct {
string name;
int val;
}
So the multimap defintion looks like this
typedef multimap<int, myStruct> mymultimap;
In the program, I populate 2 of these multimaps & I have to compare
them.
For each key, I must find out the difference in their values, whether
both have same values.
My question is: what is the most efficient way to compare multimaps.
Am I correct about using a multimap for my problem?
Thanks for your time & help.
Vandana