You could use std::find() function here.