Change this deque's size to newSize.
Synopsis
Declared in <bslstl_deque.h>
void
resize(size_type newSize);
Description
Change the size of this deque to the specified newSize. Erase `size()
-
newSize` elements at the back if
newSize < size(). Append `newSize -
size()` elements at the back having the optionally specified
value` if `newSize > size(); ifvalueis not specified, value‐initialized objects of the (template parameter)VALUE_TYPEare emplaced. This method has no effect ifnewSize == size(). Throwbsl::length_errorifnewSize > max_size().
Parameters
Name |
Description |
newSize |
desired number of elements |
Created with MrDocs