Opened 11 years ago

Closed 9 years ago

Last modified 5 years ago

#6726 closed Patches (fixed)

insert algorithm_ext overload for associative containers

Reported by: adam.walling@… Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.49.0 Severity: Not Applicable
Keywords: range algorithm_ext insert Cc:

Description

The current insert algorithm expects an iterator to an insertion point; associative containers like map, set, etc, as well as various other containers may simply provide an insert method with only two parameters for the begin and end iterator.

This is a simple overload to support those situations, so you can easily perform operations such as insert(set, vector)

Attachments (2)

insert.hpp (1.8 KB ) - added by Adam D. Walling <adam.walling@…> 11 years ago.
modified insert.hpp
insert.hpp.patch (758 bytes ) - added by Adam D. Walling <adam.walling@…> 11 years ago.
patch of modified insert.hpp

Download all attachments as: .zip

Change History (7)

by Adam D. Walling <adam.walling@…>, 11 years ago

Attachment: insert.hpp added

modified insert.hpp

by Adam D. Walling <adam.walling@…>, 11 years ago

Attachment: insert.hpp.patch added

patch of modified insert.hpp

comment:1 by Neil Groves, 9 years ago

Resolution: fixed
Status: newclosed

comment:2 by jam@…, 7 years ago

3 years ago and not patched yet? This is a really simple compile error fix, why not just include the patch in the next release?

comment:3 by jam@…, 7 years ago

Hm, it seems this patch was lost again and is not in the current release, could someone investigate?

comment:4 by jam@…, 7 years ago

To be more specific: the return statement is missing now.

comment:5 by anonymous, 5 years ago

pathetic

Note: See TracTickets for help on using tickets.