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()
Write your own:
template bool checkElementIsInSet(const T& elem, const std::set& container) { return container.find(elem) != container.end(); }