Created on 1998-10-07.00:00:00 last changed 172 months ago
Rationale:
This is not a defect in the Standard. The LWG has considered this issue in the past and sees no need to change the Standard. Deque has no reserve() member function. For vector, shrink-to-fit can be expressed in a single line of code (where v is vector<T>):
vector<T>(v).swap(v); // shrink-to-fit v
Reserve can not free storage, unlike string::reserve
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg304 |
2010-10-21 18:28:33 | admin | set | messages: + msg303 |
1998-10-07 00:00:00 | admin | create |