cpp/utility/bitset/test

Returns the value of the bit at the position (counting from 0).

Unlike operator[], performs a bounds check and throws std if does not correspond to a valid position in the bitset.

Return value
if the requested bit is set, otherwise.

Exceptions
std if does not correspond to a valid position within the bitset.