[#bitdeque-assign-08]
= xref:bitdeque.adoc[bitdeque]::assign
:relfileprefix: ../
:mrdocs:

`assign` overloads

== Synopses

Declared in `&lt;util&sol;bitdeque&period;h&gt;`

Set the container equal to the bits in ilist&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bitdeque/assign-05.adoc[assign](std::initializer&lowbar;list&lt;bool&gt; ilist);
----

[.small]#xref:bitdeque/assign-05.adoc[_» more&period;&period;&period;_]#

Set the container equal to count times the value of val&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bitdeque/assign-06.adoc[assign](
    xref:bitdeque/size_type.adoc[size&lowbar;type] count,
    bool val);
----

[.small]#xref:bitdeque/assign-06.adoc[_» more&period;&period;&period;_]#

Set the container equal to the bits in &lsqb;first,last)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename It&gt;
void
xref:bitdeque/assign-01.adoc[assign](
    It first,
    It last);
----

[.small]#xref:bitdeque/assign-01.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ilist*
| Initializer list of bit values to copy&period;
| *count*
| Number of bits the container holds afterwards&period;
| *val*
| Value assigned to every bit&period;
| *first*
| Iterator to the first bit to copy&period;
| *last*
| Iterator past the last bit to copy&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
