[#BloombergLP-bdlc-BitArray-bits]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::bits
:relfileprefix: ../../../
:mrdocs:

Return the specified `numBits` beginning at the specified `index` in this array as the low&hyphen;order bits of the returned value&period; The behavior is undefined unless `numBits &lt;&equals; sizeof(uint64&lowbar;t) &ast; CHAR&lowbar;BIT` and `index &plus; numBits &lt;&equals; length()`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;bitarray&period;h&gt;`

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


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