if (std::find(sourcesAll.begin(), sourcesAll.end(), std::string("someString") == sourcesAll.end()) { ... NOT found }