'Check for empty intersection in STL

How do I check for the empty intersection of two std::sets? I can use set_intersection, but that's unnecessarily slow, I need only bool answer.

Remark: std::set means ordered sets, they are of the same type etc.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source