[#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; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#