Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8069: Boost unordered_map iterator bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-15 23:40:31
#8069: Boost unordered_map iterator bug
-------------------------------------------------------+--------------------
Reporter: Karalis Apostolos <tolis@â¦> | Owner: danieljames
Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------
Comment (by Karalis Apostolos <tolis@â¦>):
Thanks for the reply.
I don't expect unordered map (keys) following a specific order. I thought
that if i insert into an unordered map (e.g int->int) the pairs 0->5,
4->3, 6->9, 2->0 and before the insert of the pair 6->9 take the iterator
of map[4 ] then after the insertion of the last pair, i can print out
map[4 ], map[6 ] and map[2 ] using the operator ++. This is very useful in
case of large unordered maps and multithreading (one thread
inserts/looksup elements and another one checks every x seconds (the next)
y map's elements, not simultaneously).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8069#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC