View Single Post
  #2 (permalink)  
Old February 23rd, 2006, 04:43 AM
klep klep is offline
Authorized User
 
Join Date: Oct 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

maps store key/value pairs. For example:

foo: bar
biz: baz


multimaps are similar, but they allow multiple values for a particular key (or duplicate keys, depending on how you look at it). So you could have:

foo: bar, bar2
biz: baz, baz2, baz3, bleh

There's really no advantage of one over the other -- it's just a matter of whether your use case involves multiple values for a single key or not.

----
Scott J. Kleper
Author, "Professional C++"
(Wrox, 2005)
Reply With Quote