[#bsl-vector-0a33-assign-01] = xref:bsl.adoc[bsl]::xref:bsl/vector-0a33.adoc[vector<long>]::assign :relfileprefix: ../../ :mrdocs: 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`}). == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign(std::initializer_list<long> values); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#