[#BloombergLP-bdlc-BitArray-assign1-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::assign1
:relfileprefix: ../../../
:mrdocs:

Set to 1 the value of the bit at the specified `index` in this array&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
assign1(std::size&lowbar;t index);
----


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