Bitmask operations
Overview
Template class Mask
provides the basic functionality for bitmask operations, such as adding and removing bit,
comparing masks for equality, overlap and similar tasks.
Example
Mask<uint8_t, uint32_t> mask1, mask2; // uint8_t is type of the position, uint32_t is type of underlying integer
mask1.add(1); // add bit at position 1
mask2.add(2); // add bit at position 2
bool isOverlapping = mask1.overlaps(mask2); // returns false