[#BloombergLP-bdlb-BitStringUtil-isAny1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::isAny1
:relfileprefix: ../../../
:mrdocs:

Return whether any bit in a range of `bitString` is 1&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;bitstringutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isAny1(
    uint64&lowbar;t const* bitString,
    std::size&lowbar;t index,
    std::size&lowbar;t numBits);
----

== Description

Return `true` if any of the specified `numBits` beginning at the specified `index` in the specified `bitString` are 1, and `false` otherwise&period; The behavior is undefined unless `bitString` has a length of at least `index &plus; numBits`&period;

== Return Value

`true` if any examined bit is 1, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bitString*
| bit string to examine
| *index*
| starting bit position
| *numBits*
| number of bits to examine
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
