2 C++ typedefs refer to each other - iterators
<p>C++</p>

<p>I would like to create two types of maps, each of which returns an iterator
to the other. I have cut down my code to the following, which gets syntax
errors because CacheList is not defined when encountered in the declaration
of AddressMap. Is there some way to do this ?</p>

<pre><code>typedef map&lt;void*,CacheList::iterator&gt; AddressMap;
typedef map&lt;void*,AddressMap::iterator&gt; CacheList;
</code></pre>
