After lots of trial and error i have found the answer .

In hashmap the hashFunc has to be empty . Something like this



struct hashFunc

{

int operator() (int i) const

{

}

};

This will not sort the data it will be in the manner u insert it….It will be in the stack order. ( What you enter last will be on top ) ...