Created on 2010-08-25.00:00:00 last changed 161 months ago
Proposed resolution:
Ammend [list.capacity] p1:
void resize(size_type sz);
Effects: If sz <= size(), equivalent to list<T>::iterator it = begin(); advance(it, sz); erase(it, end());. If size() < sz, appends sz - size()
default constructedvalue initialized elements to the sequence.
[ 2010 Batavia ]
Accepted with a simplified resolution turning one of the < comparisons into <=.
[ Resolution proposed in ballot comment ]
Express the semantics as pseudo-code similarly to the way it is done for the copying overload that follows (in p3). Include an else clause that does nothing and covers the sz==size() case.
Addresses GB-115
There is no mention of what happens if sz==size(). While it obviously does nothing I feel a standard needs to say this explicitely.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2011-04-11 11:23:23 | admin | set | status: voting -> wp |
2011-03-05 15:24:28 | admin | set | status: ready -> voting |
2010-11-14 16:26:57 | admin | set | messages: + msg5367 |
2010-11-14 16:26:57 | admin | set | status: review -> ready |
2010-11-13 16:30:04 | admin | set | status: open -> review |
2010-10-26 13:57:17 | admin | set | messages: + msg5149 |
2010-10-26 13:57:17 | admin | set | messages: + msg5148 |
2010-10-24 03:04:13 | admin | set | messages: + msg4917 |
2010-08-25 00:00:00 | admin | create |