Well, we all have our own standards, but...
std::set<int> numbers = ...; if (numbers.count(5)) {} // we have a 5