Resize array according to STL's vector::resize() rules
| 320 | |
| 321 | // Resize array according to STL's vector::resize() rules |
| 322 | void resize(const size_type newCount, const T& val) |
| 323 | { |
| 324 | if (newCount > count) |
| 325 | { |
| 326 | ensureCapacity(newCount); |
| 327 | while (count < newCount) { |
| 328 | data[count++] = val; |
| 329 | } |
| 330 | } |
| 331 | else { |
| 332 | count = newCount; |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | // Resize array according to STL's vector::resize() rules |
| 337 | void resize(const size_type newCount) |
no outgoing calls