. . . "I agree with many of the answers that std::map is the easiest solution." .