title: How to check that an element is in a std::set?
body: <p>How do you check that an element is in a set?</p>
  
  <p>Is there a simpler equivalent of the following code:</p>
  
  <pre><code>myset.find(x) != myset.end()
  </code></pre>