[#bsl-vector-0ec-resize-0b] = xref:bsl.adoc[bsl]::xref:bsl/vector-0ec.adoc[vector<unsigned int>]::resize :relfileprefix: ../../ :mrdocs: Change the size of this vector to the specified `newSize`, inserting `newSize ‐ size()` copies of the specified `value` at the end of this vector if `newSize > size()`. If `newSize < size()`, the elements in the range `[newSize .. size())]` are erased, `value` is ignored, and this method does not throw. If `newSize > size()` and an exception is thrown, `*this` is unaffected. Throw `std::length_error` if `newSize > max_size()`. This method requires that the (template parameter) type `VALUE_TYPE` be `copy‐insertable` into this vector (see {Requirements on `VALUE_TYPE`}). == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void resize( xref:bsl/vector-0ec/size_type.adoc[size_type] newSize, unsigned int const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#