Assign a new value to this vector.
Synopsis
Declared in <bslstl_vector.h>
void
assign(std::initializer_list<VALUE_TYPE> values);
Description
Assign to this object the value resulting from first clearing this vector and then inserting (in order) each VALUE_TYPE object in the specified values initializer list. If an exception is thrown, *this is left in a valid but unspecified state. This method requires that the (template parameter) type VALUE_TYPE be copy‐insertable into this vector (see {Requirements on VALUE_TYPE}).
Parameters
Name |
Description |
values |
initializer list of elements |
Created with MrDocs