std::map< std::string ,std::string> mObj;
mObj["one"] = "hello";
mObj["two"] = "hello";
mObj["three"] ="hello;
How to get key when input is hello(this is dup )
Ex 1 : when refer to mObj["one"] = "hello";
input : hello
output: one
Ex 2: when refer to mObj["two"] = "hello";
input : hello
output: two
Ex 3 :when refer to mObj["three"] ="hello;
input : hello
output : three
Is it good to make explicitly unique value to all the duplicate value during insert time. when input hello is received, i get the corresponding unique value (which was done internally) and get the correct key.
Please help to address this problem.