finding 2 elements in one vector iteration

Hello All

is there anyway I can find two elements in a vector in one iteration? e-g

1
2
3
4
if(find(this) AND find(this))
{
  // then do this
}



Thanks
http://www.cplusplus.com/reference/algorithm/find/
substitude the algorithm to the
if(find(this) AND find(this))
Topic archived. No new replies allowed.