Module 15 · bitset and Bit Tricks: Sixty-Four Booleans in One Word
Every bitset Operation, One by One, With Its Cost
Free with an accountReading
David has three snapshots of a relay board. He needs changes at both boundaries, not just a comparison of endpoints. First he checks what each operation actually promises. This lesson is that small toolbox, with costs beside the calls.
Checking what this lesson needs for you…
What is inside Every bitset Operation, One by One, With Its Cost
- Construction
- size
- set
- reset
- flip
- test and subscript
- count
- any
- none
- all
- Left shift
- Right shift
- Bitwise AND
- Bitwise OR
- Bitwise XOR
- Complement
- to_string
- to_ulong and to_ullong
- Equality