[#prevector-0c-assign-084] = xref:prevector-0c.adoc[prevector]::assign :relfileprefix: ../ :mrdocs: `assign` overloads == Synopses Declared in `<prevector.h>` Replaces the contents with `n` copies of `val`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:prevector-0c/assign-0a.adoc[assign]( xref:prevector-0c/size_type.adoc[size_type] n, T const& val); ---- [.small]#xref:prevector-0c/assign-0a.adoc[_» more..._]# Replaces the contents with copies of the elements in the range [first, last).] [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::input_iterator InputIterator> void xref:prevector-0c/assign-088.adoc[assign]( InputIterator first, InputIterator last); ---- [.small]#xref:prevector-0c/assign-088.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *n* | The number of copies to store. | *val* | The value to copy into each element. | *first* | Iterator to the first element to copy. | *last* | Iterator one past the last element to copy. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#