How to use find from vector items c++

  c++, vector, wstring
std::vector<std::wstring> name_list;
name_list.push_back(L"name1");
name_list.push_back(L"name2");

//---

if (allname->name.find(name_list[0].data()) != std::wstring::npos)
{
   //deosomething
}

I can use this but I want to find all entries in the vector to check if they exist [allname->name.find()] this code is necessary type force is wstring.

How should I do?

Source: Windows Questions C++

LEAVE A COMMENT