September 12th, 2013, 05:16 AM
Reading from a map using indexing.
I would like to validate one of my approach.
I am creating a map like
std::map<unsigned int, double> key_value_pair;
I insert the value like as follows
Then i would like to read the value like as follows
double value = key_value_pair;
I am able to compile & there is no error.
question is does this will give 30.0 always.?
I am using VS2005.
Click Here to Expand Forum to Full Width