[#BloombergLP-bdlb-NullableAllocatedValue_PointerBitsPair-readFlag] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue_PointerBitsPair]::readFlag :relfileprefix: ../../../ :mrdocs: Return the value of 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"] ---- bool readFlag(unsigned int idx) const; ---- == Return Value `true` if the flag at `idx` is set, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *idx* | index of the flag to read |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#