// typedefs help a lot to shorten the verbose C++ code typedef std::map<std::vector<unsigned char>, int> MyMapType;