[#bsl-bitset-test]
= xref:bsl.adoc[bsl]::xref:bsl/bitset.adoc[bitset]::test
:relfileprefix: ../../
:mrdocs:

Return `true` if the bit at the specified `pos` has the value of 1 and `false` otherwise&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;bitset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
test(size&lowbar;t pos) const;
----

== Return Value

`true` if the bit at `pos` is 1, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| index of the bit to test
|===


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