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
map find function
map find function
Oct 11, 2013 at 1:43pm UTC
hellcoder
(114)
i have map like this
1=>5
2=>1
3=>2
4=>3
5=>1
now if i use find func. like this
it=mymap.find(2)
then it will point
2=>1 or 3=> 2 as both contain 2 in first and second position!
Oct 11, 2013 at 1:47pm UTC
MiiNiPaa
(8886)
http://en.cppreference.com/w/cpp/container/map/find
reference
wrote:
Finds an element with
key
key
So your example will return pair (2, 1)
Last edited on
Oct 11, 2013 at 1:47pm UTC
Topic archived. No new replies allowed.