bsl::vector::operator=

Assignment operators

Synopses

Declared in <bslstl_vector.h>

Copy-assign from the specified rhs.

vector<VALUE_TYPE, ALLOCATOR>&
operator=(vector const& rhs);
» more...

Move-assign from the specified rhs.

vector<VALUE_TYPE, ALLOCATOR>&
operator=(BloombergLP::bslmf::MovableRef<vector<VALUE_TYPE, ALLOCATOR>> rhs) noexcept(/* see-below */);
» more...

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);
» more...

Return Value

  • a reference providing modifiable access to this vector
  • reference providing modifiable access to this vector

Parameters

NameDescription
rhsthe vector to copy-assign from
valuesinitializer list of elements