summaryrefslogtreecommitdiff
path: root/datastructures/bitset.cpp
blob: 242d82110b53c65fc093679ba9328f488178605c (plain)
1
2
3
4
5
6
bitset<10> bits(0b000010100);
bits._Find_first(); //2
bits._Find_next(2); //4
bits._Find_next(4); //10 bzw. N
bits[x] = 1;        //not bits.set(x) or bits.reset(x)!
bits[x].flip();     //not bits.flip(x)!