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.
Synopsis
Declared in <bslstl_vector.h>
vector<VALUE_TYPE, ALLOCATOR>&
operator=(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, and return a reference providing modifiable access to this object. 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}).
Return Value
reference providing modifiable access to this vector
Parameters
Name |
Description |
values |
initializer list of elements |
Created with MrDocs