[#BloombergLP-bdlb-BitUtil-isBitSet-0a8] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitUtil.adoc[BitUtil]::isBitSet :relfileprefix: ../../../ :mrdocs: Return whether the bit at `index` in `value` is set. == Synopsis Declared in `<bdlb_bitutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isBitSet( unsigned int value, int index); ---- == Description Return `true` if the bit in the specified `value` at the specified `index` is set to 1, and `false` otherwise. The behavior is undefined unless `0 <= index < sizeInBits(value)`. == Return Value `true` if the bit is set, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *value* | value to inspect | *index* | bit position to test |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#