[#BloombergLP-bdlc-BitArray-assign-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::assign
:relfileprefix: ../../../
:mrdocs:

Set the value at the specified `index` in this array to the specified `value`&period; The behavior is undefined unless `index &lt; length()`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;bitarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
assign(
    std::size&lowbar;t index,
    bool value);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| bit position to set
| *value*
| bit value to store at `index`
|===


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