#include #include #include #include #include #include #include using namespace std; struct eqstr { bool operator() (const char *s1, const char *s2) const { return strcmp(s1,s2)==0; } }; int main() { hash_map, hash,eqstr> months; //hash_map months; months["jan"].push_back("jan1"); months["feb"].push_back("feb1"); months["mar"].push_back("mar1"); months["mar"].push_back("mar2"); months["mar"].push_back("mar3"); months["jan"].push_back("jan2"); months["jan"].push_back("jan3"); months["feb"].push_back("feb2"); months["feb"].push_back("feb3"); cout << "jan := " << endl; int len = months["jan"].size(); cout << "jan size = " << len << endl; for(int i=0;i