bool at(size_type pos) const;
reference at(size_type pos);
The member function returns an object of class reference
, which designates the bit at position pos
, if the object can
be modified. Otherwise, it returns the value of the bit at position pos
in the bit sequence. If that position is invalid, the
function throws an object of class out_of_range
.