Another small question about STL:
i have Dictionary:
map <string,vector <Wordy> > Dictionary;
using structure Wordy:
struct Wordy{ int count; string word;}
also this structure have overloaded operator<
bool operator< (Wordy& One, Wordy& Two){return One.count<Two.count;}
but this sort() function from algorithm doesn’t work!
sort(Dictionary.find(s)->second.begin(),Dictionary.find(s)->second.end());
Your
operator<should take its parameters by reference-to-const, I think that might be it: