| 755 | template <class T, size_t N, class AP> |
| 756 | STATIC_POSTCONDITION(!return || ubound(this->begin()) >= newLength) |
| 757 | inline bool |
| 758 | Vector<T,N,AP>::resize(size_t newLength) |
| 759 | { |
| 760 | size_t curLength = mLength; |
| 761 | if (newLength > curLength) |
| 762 | return growBy(newLength - curLength); |
| 763 | shrinkBy(curLength - newLength); |
| 764 | return true; |
| 765 | } |
| 766 | |
| 767 | template <class T, size_t N, class AP> |
| 768 | JS_ALWAYS_INLINE bool |