bsl::bitset::test

Return true if the bit at the specified pos has the value of 1 and false otherwise.

Synopsis

Declared in <bslstl_bitset.h>

bool
test(size_t pos) const;

Return Value

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

Parameters

NameDescription
posindex of the bit to test