cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Iterator
Iterator
Oct 6, 2013 at 4:53pm UTC
hellcoder
(114)
i am using iterator over a map and i have found something like ""it->second""
what does it mean?
Oct 6, 2013 at 5:31pm UTC
keskiverto
(10402)
The value_type of a map is a pair, and the elements of a pair are "first" and "second". Iterator resemples pointer in that both have operator '->' to access the members of the object they are pointing to.
Topic archived. No new replies allowed.