[#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. == Synopsis Declared in `<bslstl_bitset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool test(size_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]#