[#BloombergLP-bdlb-BitUtil-withBitSet-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitUtil.adoc[BitUtil]::withBitSet :relfileprefix: ../../../ :mrdocs: `withBitSet` overloads == Synopses Declared in `<bdlb_bitutil.h>` Return the result of replacing the bit at the specified `index` in the specified `value` with 1, transferring all other bits from `value` unchanged. The behavior is undefined unless `0 <= index < sizeInBits(value)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/BitUtil/withBitSet-00.adoc[withBitSet]( unsigned int value, int index); ---- [.small]#xref:BloombergLP/bdlb/BitUtil/withBitSet-00.adoc[_» more..._]# Same as the `unsigned int` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned long xref:BloombergLP/bdlb/BitUtil/withBitSet-04f.adoc[withBitSet]( unsigned long value, int index); ---- [.small]#xref:BloombergLP/bdlb/BitUtil/withBitSet-04f.adoc[_» more..._]# Same as the `unsigned int` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned long long xref:BloombergLP/bdlb/BitUtil/withBitSet-047.adoc[withBitSet]( unsigned long long value, int index); ---- [.small]#xref:BloombergLP/bdlb/BitUtil/withBitSet-047.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#