Title
Renaming emplace() overloads
Status
nad
Section
[associative.reqmts]
Submitter
Sylvain Pion

Created on 2007-12-04.00:00:00 last changed 150 months ago

Messages

Date: 2011-12-08.20:03:41

Proposed resolution:

Rename one of the two overloads. For example to emplace_here, hint_emplace...

Date: 2011-12-08.20:03:41

[ For related discussion see 1302 ]

LWG N2680 renamed one of the overloads to emplace_hint.

Resolution: Change state to NAD.

Date: 2011-12-08.20:03:41

[ Bellevue: ]

This can be disambiguated by passing "begin" as the first argument in the case when the non-default choice is desired. We believe that desire will be rare.

Date: 2010-10-21.18:28:33

[ Related to 767 ]

Date: 2007-12-04.00:00:00

The associative containers provide 2 overloads of emplace():

template <class... Args> pair<iterator, bool> emplace(Args&&... args);
template <class... Args> iterator emplace(const_iterator position, Args&&... args);

This is a problem if you mean the first overload while passing a const_iterator as first argument.

History
Date User Action Args
2011-12-08 20:03:41adminsetmessages: + msg5956
2010-10-21 18:28:33adminsetmessages: + msg3693
2010-10-21 18:28:33adminsetmessages: + msg3692
2010-10-21 18:28:33adminsetmessages: + msg3691
2007-12-04 00:00:00admincreate