what\'s the alternative?
Should I write by myself?
Use std::find(vec.begin(), vec.end(), value).
std::find(vec.begin(), vec.end(), value)
And don't forget to include