[#bsl-vector-00d-operator_assign-0bc] = xref:bsl.adoc[bsl]::xref:bsl/vector-00d.adoc[vector]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<bslstl_vector.h>` Copy‐assign from the specified `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-00d.adoc[vector<VALUE_TYPE, ALLOCATOR>]& xref:bsl/vector-00d/operator_assign-0b8.adoc[operator=](xref:bsl/vector-00d.adoc[vector] const& rhs); ---- [.small]#xref:bsl/vector-00d/operator_assign-0b8.adoc[_» more..._]# Move‐assign from the specified `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-00d.adoc[vector<VALUE_TYPE, ALLOCATOR>]& xref:bsl/vector-00d/operator_assign-0d.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<vector<VALUE_TYPE, ALLOCATOR>>] rhs) noexcept(/* see-below */); ---- [.small]#xref:bsl/vector-00d/operator_assign-0d.adoc[_» 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-00d.adoc[vector<VALUE_TYPE, ALLOCATOR>]& xref:bsl/vector-00d/operator_assign-09.adoc[operator=](std::initializer_list<VALUE_TYPE> values); ---- [.small]#xref:bsl/vector-00d/operator_assign-09.adoc[_» more..._]# == Return Value * a reference providing modifiable access to this vector * reference providing modifiable access to this vector == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | the vector to copy‐assign from | *values* | initializer list of elements |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#