STL like containter typedef shortcut?
<p>A common pattern with STL containers is this:</p>

<pre><code>map&lt;Key, Value&gt; map;
for(map&lt;Key, Value&gt;::iterator iter = map.begin(); iter != map.end(); ++iter)
{
  ...
}
</code></pre>

<p>So inorder to avoid writing the decleration of the template parameters we can do this somewhere:</p>

<pre><code>typedef map&lt;Key, Value&gt; TNiceNameForAMap;
</code></pre>

<p>But if this map is only used in a single function or for a single iteration this is an annoying overhead.<br />
Is there any way around this typedef?</p>
