and_eq
for
do-while
const
volatile
typedef
new
delete
this
&=
#include <bitset> #include <iostream> int main() { std::bitset<4> mask("1100"); std::bitset<4> val("0111"); val and_eq mask; std::cout << val << '\n'; }
输出
0100
and
bitand
bitor
not
not_eq
or
or_eq
xor
xor_eq