[#prevector-01-assign-03] = xref:prevector-01.adoc[prevector<36, unsigned char>]::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-01/assign-02.adoc[assign]( xref:prevector-01/size_type.adoc[size_type] n, unsigned char const& val); ---- [.small]#xref:prevector-01/assign-02.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-01/assign-04.adoc[assign]( InputIterator first, InputIterator last); ---- [.small]#xref:prevector-01/assign-04.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]#