How to find whether an element exists in std::map?
<p>My use case:</p>

<pre><code>map&lt;string, Car&gt; cars;
bool exists(const string&amp; name) {
  // somehow I should find whether my MAP has a car
  // with the name provided
  return false;
} 
</code></pre>

<p>Could you please suggest the best and the most elegant way to do it in C++? Thanks.</p>
