[#BloombergLP-bdlb-NullableAllocatedValue_PointerBitsPair-setFlag]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue&lowbar;PointerBitsPair]::setFlag
:relfileprefix: ../../../
:mrdocs:

Set the flag specified by `idx`&period; The behavior is undefined unless `idx &lt; t&lowbar;NUM&lowbar;BITS`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullableallocatedvalue&lowbar;pointerbitspair&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setFlag(unsigned int idx);
----


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