title: How to check if std::map contains a key without doing insert?
body: <p>The only way I have found to check for duplicates is by inserting and checking the <code>std::pair.second</code> for <code>false</code>, but the problem is that this still inserts something if the key is unused, whereas what I want is a <code>map.contains(key);</code> function.</p>