Boost logo

Boost Users :

Subject: [Boost-users] Does boost::unordered_map<> work with boost::container::scoped_adaptor?
From: Jonathon Bell (jonathon.work_at_[hidden])
Date: 2013-10-22 12:50:22


*context
*our code base uses boost 1.54 with GCC 4.4.7 on CentOS 6, compiling as
C++98.
we're interested in using an allocator with state with the standard
containers, so are investigating the boost container library in boost 1.54,
in particular, instantiating these containers with a
boost::container::scoped_allocator_adaptor<MyArena> style argument.

*questions*
1) i notice that boost::unordered_xxx<> is not part of the boost container
library. does this mean that these classes are not aware of the C++11
allocator model? a casual inspection of the code suggests that this might
be the case

2) if so, has anyone here tried to patch them, port them, or the like?

3) if not, can anyone here offer thoughts or advice on how i might attempt
to do so myself?

rgerads,

Jonathon Bell
Paradigm 4



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