[#BloombergLP-bdlb-BitStringUtil-find1AtMaxIndex-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::find1AtMaxIndex :relfileprefix: ../../../ :mrdocs: Return the index of the most‐significant 1 bit in `bitString`. == Synopsis Declared in `<bdlb_bitstringutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t find1AtMaxIndex( uint64_t const* bitString, std::size_t length); ---- == Description Return the index of the most‐significant 1 bit in the specified `bitString` having the specified `length`, if such a bit exists, and `k_INVALID_INDEX` otherwise. == Return Value index of the most‐significant 1 bit, or `k_INVALID_INDEX` == Parameters [cols="1,4"] |=== | Name| Description | *bitString* | bit string to search | *length* | number of bits in `bitString` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#