Opened 13 years ago

Closed 13 years ago

#3665 closed Patches (fixed)

Bimap and custom allocators

Reported by: gutierrez.gustavo@… Owned by: Matias Capeletto
Milestone: Boost 1.42.0 Component: bimap
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc: matias.capeletto@…

Description

In the current implementation of bimap there is no way to specify a custom allocator. It is documented as a feature but not implemented. Custom allocators were considered in the design of bimap (they are considered as a template parameter) but not implemented. The attached patch solves the problem by modifying two constructors of bimap class and adding an allocator as an optional parameter. The patch is against the svn boost sources.

Hope this helps.

Gustavo

Attachments (2)

bimap-allocator.patch (1.6 KB ) - added by gutierrez.gustavo@… 13 years ago.
Patch for use of custom allocators in bimaps
bimap-allocator.2.patch (1.6 KB ) - added by gutierrez.gustavo@… 13 years ago.
fixed patch, now it works for the iterator based constructor.

Download all attachments as: .zip

Change History (4)

by gutierrez.gustavo@…, 13 years ago

Attachment: bimap-allocator.patch added

Patch for use of custom allocators in bimaps

by gutierrez.gustavo@…, 13 years ago

Attachment: bimap-allocator.2.patch added

fixed patch, now it works for the iterator based constructor.

comment:1 by Matias Capeletto, 13 years ago

Status: newassigned

comment:2 by Matias Capeletto, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.