title: Finding a value of range less than or greater than from container class
body: <p>Currently, I have a <code>std::map &lt;DWORD, DWORD&gt;</code> table and I'm looking for a key value matching a specific range.</p>
  
  <p>For example:</p>
  
  <p>Find a key value from map whose value should be either less than &lt; 50 or greater than > 50 from the searched key value.</p>
  
  <p>If the searched key value was 20 then I would want a key value of range from map i.e</p>
  
  <pre><code>-70.............20............+70
  </code></pre>
  
  <p>is there a better way to find a key value other than using two loop (first for less than, second for greater than) or an appropriate way to store table data for such operation?</p>