Assignment operators

Synopses

Declared in <bslstl_vector.h>

Copy‐assign from the specified rhs.

Move‐assign from the specified rhs.

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.

vector<VALUE_TYPE, ALLOCATOR>&
operator=(std::initializer_list<VALUE_TYPE> values);

Return Value

  • a reference providing modifiable access to this vector

  • reference providing modifiable access to this vector

Parameters

Name

Description

rhs

the vector to copy‐assign from

values

initializer list of elements

Created with MrDocs