I have an vector word_list, and i want to find an word in word_list. I use function
bool Mylayer::existWord(vector<string> word_list, string word)
{
if (std::lower_bound(word_list.begin(), word_list.end(), word) != word_list.end())
{
return true;
}
return false;
}
but it find not exactly. Can some one tell me why ?