Ticket #3665: bimap-allocator.2.patch
File bimap-allocator.2.patch, 1.6 KB (added by , 13 years ago) |
---|
-
boost/bimap/bimap.hpp
190 190 left_map::const_reference left_const_reference; 191 191 192 192 typedef BOOST_DEDUCED_TYPENAME 193 193 right_map::reference right_reference; 194 194 typedef BOOST_DEDUCED_TYPENAME 195 195 right_map::const_reference right_const_reference; 196 196 197 197 typedef BOOST_DEDUCED_TYPENAME base_::relation::info_type info_type; 198 198 199 typedef BOOST_DEDUCED_TYPENAME base_::core_type::allocator_type allocator_type; 200 199 201 /// Left map view 200 202 left_map left; 201 203 202 204 /// Right map view 203 205 right_map right; 204 206 205 bimap() :207 bimap(const allocator_type& al = allocator_type()) : 206 208 207 209 base_::relation_set( 208 210 ::boost::multi_index::get< 209 211 BOOST_DEDUCED_TYPENAME base_::logic_relation_set_tag 210 212 >(core) 211 213 ), 214 core(al), 212 215 left ( 213 216 ::boost::multi_index::get< 214 217 BOOST_DEDUCED_TYPENAME base_::logic_left_tag … … 223 226 {} 224 227 225 228 template< class InputIterator > 226 bimap(InputIterator first,InputIterator last ) :229 bimap(InputIterator first,InputIterator last,const allocator_type& al = allocator_type()) : 227 230 228 231 base_::relation_set( 229 232 ::boost::multi_index::get< … … 231 234 >(core) 232 235 ), 233 236 234 core(first,last ),237 core(first,last,BOOST_DEDUCED_TYPENAME base_::core_type::ctor_args_list(),al), 235 238 236 239 left ( 237 240 ::boost::multi_index::get<