#6336 closed Bugs (fixed)
return type of flat_map::emplace is not match to documents
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.48.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The document says, return type of flat_map.emplace is pair that contains iterator and bool. However actual type is iterator.
e.g. Boost.Unordered and standard library of emplace return pair. container::map::emplace returns iterator (map's doc is match to impl).
Which is correct?
Change History (4)
comment:1 by , 11 years ago
comment:4 by , 11 years ago
No, the standard interface for std::map/set::emplace_hint does not have it, just like insert with hint returns iterator.
Note:
See TracTickets
for help on using tickets.
This is a bug, the standard library is correct. Fixed in trunk.