[#absl-InlinedVector-assign-06] = xref:absl.adoc[absl]::xref:absl/InlinedVector.adoc[InlinedVector]::assign :relfileprefix: ../../ :mrdocs: `assign` overloads == Synopses Declared in `<absl/container/inlined_vector.h>` Overload of `InlinedVector::assign(...)` that replaces the contents of the inlined vector with copies of the elements of `list`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/InlinedVector/assign-0ed.adoc[assign](std::initializer_list<value_type> list); ---- [.small]#xref:absl/InlinedVector/assign-0ed.adoc[_» more..._]# Replaces the contents of the inlined vector with `n` copies of `v`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/InlinedVector/assign-094.adoc[assign]( xref:absl/InlinedVector/size_type.adoc[size_type] n, xref:absl/InlinedVector/const_reference.adoc[const_reference] v); ---- [.small]#xref:absl/InlinedVector/assign-094.adoc[_» more..._]# Overload of `InlinedVector::assign(...)` to replace the contents of the inlined vector with the range [`first`, `last`).] [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename ForwardIterator, xref:absl/InlinedVector.adoc[EnableIfAtLeastForwardIterator<ForwardIterator>] = 0> void xref:absl/InlinedVector/assign-099.adoc[assign]( ForwardIterator first, ForwardIterator last); ---- [.small]#xref:absl/InlinedVector/assign-099.adoc[_» more..._]# Overload of `InlinedVector::assign(...)` to replace the contents of the inlined vector with the range [`first`, `last`).] [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename InputIterator, xref:absl/InlinedVector.adoc[DisableIfAtLeastForwardIterator<InputIterator>] = 0> void xref:absl/InlinedVector/assign-0d.adoc[assign]( InputIterator first, InputIterator last); ---- [.small]#xref:absl/InlinedVector/assign-0d.adoc[_» more..._]# Overload of `InlinedVector::assign(...)` to replace the contents of the inlined vector with the range [`first`, `last`).] [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename InputIterator, xref:absl/InlinedVector.adoc[DisableIfAtLeastForwardIterator<InputIterator>] = 0> void xref:absl/InlinedVector/assign-0e6.adoc[assign]( InputIterator first, InputIterator last); ---- [.small]#xref:absl/InlinedVector/assign-0e6.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *list* | The initializer list to copy elements from. | *n* | The number of copies to assign. | *v* | The value to copy into each element. | *first* | An iterator to the beginning of the range. | *last* | An iterator past the end of the range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#