Title
insert_return_type is only defined for containers with unique keys
Status
resolved
Section
[associative.reqmts][unord.req]
Submitter
Daniel James

Created on 2016-11-24.00:00:00 last changed 96 months ago

Messages

Date: 2017-02-02.00:41:18

[ Issues Telecon 16-Dec-2016 ]

Resolved by adoption of P0508R0.

Date: 2016-11-24.00:00:00

The requirements for associative and unordered associative containers list insert_return_type for all containers, but looking at the class description in [map.overview], [multimap.overview] etc. it's only defined for containers with unique keys. Jonathan Wakely pointed out that this depends on the resolution of LWG 2772, which might remove insert_return_type completely.

A possible resolution would be to put in [associative.reqmts]: 'insert_return_type (map and set only)' and in [unord.req]: 'insert_return_type (unordered_map and unordered_set only)'. Or maybe something like '(containers with unique keys only)'.

History
Date User Action Args
2016-12-16 20:56:38adminsetmessages: + msg8751
2016-12-16 20:56:38adminsetstatus: new -> resolved
2016-11-24 00:00:00admincreate