Make the conversion explicit:

std::map&lt;int, int&gt; SomeMap;

for ( int i = 0; i &lt; 10; i++)
    SomeMap[ i ] = i;

std::map&lt;int, int&gt;::iterator it = SomeMap.find( 5 );
std::map&lt;int, int&gt;::reverse_iterator itr( it );

for ( itr; itr != SomeMap.rend( ); itr++ )
    std::cout &lt;&lt; itr-&gt;first &lt;&lt; std::endl;


Reverse iteration from a given map iterator
How do you get the selected value from a number based spinner in java?

As i side note why does android always come up under the search term spinner
