[#BloombergLP-bdlb-BitStringUtil-assign-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::assign :relfileprefix: ../../../ :mrdocs: Set the specified `numBits` beginning at the specified `index` in the specified `bitString` to the specified `value`. The behavior is undefined unless `bitString` has a capacity of at least `index + numBits`. == Synopsis Declared in `<bdlb_bitstringutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void assign( uint64_t* bitString, std::size_t index, bool value, std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#