title: lower_bound in set (C++)
body: <p>I've got a set and I want to find the largest number not greater than x in it. (something like lower_bound(x) ) how should i do it? Is there any predefined functions?</p>
  
  <pre><code>set&lt;int&gt; myset;
  myset.insert(blahblahblah);
  int y;
  //I want y to be greatest number in myset not greater than x
  </code></pre>