Created on 2009-03-12.00:00:00 last changed 162 months ago
Proposed resolution:
In [sequence.reqmts] Table 84, replace iterator with auto in semantics for back:
Table 84 — Optional sequence container operations Expression Return type Operational semantics Container a.back() reference; const_reference for constant a { iteratorauto tmp = a.end();
--tmp;
return *tmp; }vector, list, deque, basic_string
[ Batavia (2009-05): ]
We agree with the proposed resolution. Move to Tentatively Ready.
[ Summit: ]
Agree.
Addresses UK 234 [CD1]
The reference to iterator in semantics for back should also allow for const_iterator when called on a const-qualified container. This would be ugly to specify in the 03 standard, but is quite easy with the addition of auto in this new standard.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-10-21 18:28:33 | admin | set | messages: + msg435 |
2010-10-21 18:28:33 | admin | set | messages: + msg434 |
2010-10-21 18:28:33 | admin | set | messages: + msg433 |
2009-03-12 00:00:00 | admin | create |