Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Fastest way...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 9561 of 9831
Post > Topic >>

Re: Fastest way to clone a hash_map

by "Roman.Perepelitsa@[EMAIL PROTECTED] " <Roman.Perepelitsa@[EMAIL PROTECTED] > Apr 30, 2008 at 10:27 AM

On 30 Apr, 12:13, devdude <rottygu...@[EMAIL PROTECTED]
> wrote:
> 4) What I'm really after is to be able to sort the hash_map (in real
> time) so I can prune it based on a given criteria (think cache
> scavenging).  I suspect the best way is to snap_shot the data and work
> on the copy, but perhaps there's a better way.

You might want to take a look at boost::multi_index library:
http://www.boost.org/doc/libs/1_35_0/libs/multi_index/doc/index.html.

With it you can have hash map, which allows you to access elements in
sorted order.

HTH,
Roman Perepelitsa.

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 9 Posts in Topic:
Fastest way to clone a hash_map
devdude <rottyguy70@[E  2008-04-29 12:09:16 
Re: Fastest way to clone a hash_map
=?ISO-8859-1?Q?Daniel_Kr=  2008-04-29 17:42:35 
Re: Fastest way to clone a hash_map
"Stephen Howe"   2008-04-29 17:43:43 
Re: Fastest way to clone a hash_map
bachlipp@[EMAIL PROTECTED  2008-04-29 17:42:01 
Re: Fastest way to clone a hash_map
Tony Delroy <tony_in_d  2008-04-30 03:52:18 
Re: Fastest way to clone a hash_map
devdude <rottyguy70@[E  2008-04-30 04:13:33 
Re: Fastest way to clone a hash_map
Carl Barron <cbarron41  2008-04-30 04:13:32 
Re: Fastest way to clone a hash_map
Mathias Gaunard <loufo  2008-04-30 04:13:32 
Re: Fastest way to clone a hash_map
"Roman.Perepelitsa@[  2008-04-30 10:27:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:53:03 CDT 2008.