Boost logo

Boost :

Subject: Re: [boost] interprocess with unordered_map
From: Joel (jdy_at_[hidden])
Date: 2012-03-21 17:56:21


Joel <jdy <at> cryregarder.com> writes:

> Ion Gaztañaga <igaztanaga <at> gmail.com> writes:
> > Yes, please. At least in Boost.Container, as those containers are based
> > on Boost.Intrusive, implementation should be pretty easy.
>
> I went ahead and filed.
>
> Containers:
> https://svn.boost.org/trac/boost/ticket/6710
>
> Interprocess:
> https://svn.boost.org/trac/boost/ticket/6711

Ticket 6711 was closed "won't fix"
https://svn.boost.org/trac/boost/ticket/6711 :

> Closing as "won't fix", since boot unordered is an implementation
> of the standard unordered containers, and this would be a break
> from the standard. It would also be worse when using std::equal_to
> or boost::hash since it would have to cast for every call to those
> function objects rather than just once for the call to operator[].

Perhaps the interprocess docs can be updated to show how to create a simple
allocator from the heap for easy creation of these temporary copiers and how to
cleanly provide the thunking between "normal" equivalent types (e.g. strings)
and those used in memory regions (basic_string).

Joel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk