[#BloombergLP-bdlb-BitStringUtil-assign1-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::assign1
:relfileprefix: ../../../
:mrdocs:

Set one bit in `bitString` to `true`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;bitstringutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
assign1(
    uint64&lowbar;t* bitString,
    std::size&lowbar;t index);
----

== Description

Set the bit at the specified `index` in the specified `bitString` to `true`&period; The behavior is undefined unless `index` is less than the capacity of `bitString`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bitString*
| bit string to modify
| *index*
| bit position to set
|===


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