
Recently i wrote a json parser. I used stl map to store the json objects. Everything was fine except the order of the objects. Is it worth to build something in boost to have the map which provides an iterator to get the elements in same order? Please advise.

2012/6/23 Kannan R:
Recently i wrote a json parser. I used stl map to store the json objects. Everything was fine except the order of the objects. Is it worth to build something in boost to have the map which provides an iterator to get the elements in same order? Please advise.
Hi, http://en.cppreference.com/w/cpp/container/unordered_map http://www.boost.org/doc/libs/1_49_0/doc/html/unordered.html -- Regards, niXman ___________________________________________________ Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows: http://sourceforge.net/projects/mingwbuilds/

On Sat, Jun 23, 2012 at 1:37 AM, Kannan R <rkannan1978@gmail.com> wrote:
Recently i wrote a json parser. I used stl map to store the json objects. Everything was fine except the order of the objects. Is it worth to build something in boost to have the map which provides an iterator to get the elements in same order? Please advise.
What was wrong with the order? Are you looking for boost multi_index? -- Olaf
participants (3)
-
Kannan R
-
niXman
-
Olaf van der Spek