How do you check that an element is in a set?
Is there a simpler equivalent of the following code:
myset.find(x) != myset.end()
See Question&Answers more detail:osHow do you check that an element is in a set?
Is there a simpler equivalent of the following code:
myset.find(x) != myset.end()
See Question&Answers more detail:os