Boost logo

Boost Users :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-07-20 10:27:51


> Hi,
>
> I have tried everything so far and maybe it's the sun, the heat or whatever
> but I can't get flat_multimap from shmem to insert a value.
>
> I have:
>
> typedef boost::shmem::flat_multimap<size_t, myShmNode*, myHashEqual,
> myShmNodePtrAllocator> MyMultiMap;
>
> and I have tried an insert with a typedef std::pair<size_t,myShmNode*>
> multiMapNodeType; as an argument to 'insert' without success.
>
> Can someone tell me what sould I put as an argument to the call to 'insert'
> for the above declaration of a flat_multimap?

Can you give a small example to know what myHashEqual and
myShmNodePtrAllocator are defined? flat_multimap is an ordered container
(just like std::map) so a the ordering function should be a LessThan
like ordering function and not an Equality function. Can you write a
small test case just creating a multimap and inserting a value that
shows those typedefs?

Regards,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net