boost::dynamic_bitset::operator[]
Subscript operators
Synopses
Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>
Returns a reference to the bit at position pos.
The same as test( pos ).
bool
operator[](size_type pos) const;
Return Value
-
A
referenceto bitpos. Note thatreferenceis a proxy class with an assignment operator and a conversion tobool, which allows you to useoperator[]for assignment. That is, you can write bothx = b[ n ]andb[ n ] = x. However, in many other respects the proxy is not the same as the true reference typebool &. -
The same as
test( pos ).
Preconditions
-
pos < this‐>size().
Created with MrDocs