Lets say I have a complex map defined as
std::map<int, std::pair< vector<int>, float> > complex_map;
Let us assume I initialized this map as
for (int k=0;k<5;k++)
{
std::pair< vector<int>, float> complex_map_child;
complex_map[k]=complex_map_child;
}
Next, I populate some entries of this map:
float test_1 = .7888;
vector<int> test_2;
test_2.push_back(1);
test_2.push_back(2);
complex_map[1].first = test_2;
complex_map[1].second = test_1;
So corresponding to key value 1 of complex_map, I have the pair of values corresponding to test_1 and test_2.
Now how do I check if I have explicitly added values to the map? i.e in this example how do I say that I havent explicitly filled up say complex_map[0]?