[#BloombergLP-bdlb-NullableAllocatedValue_PointerBitsPair-setFlag] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue_PointerBitsPair]::setFlag :relfileprefix: ../../../ :mrdocs: Set the flag specified by `idx`. The behavior is undefined unless `idx < t_NUM_BITS`. == Synopsis Declared in `<bdlb_nullableallocatedvalue_pointerbitspair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setFlag(unsigned int idx); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#