Sign in to follow this  
Rozik

STL Map

Recommended Posts

Hi everyone, i have a real quick and easy question: Does this get me the first or second item in a map? PriorityMapIter pos = m_PrioMap.begin(); pos++; i am trying to get the first item of the map thx a lot in advance

Share this post


Link to post
Share on other sites
Well, it's second in normal-person counting, but first in programmer-counting (it's common to hear experienced programmers talk about the "zeroth element" of an array for example) :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this