bit_logic > Bit Index / Range

Bit Index

A Bit Index is the offset within the Bit Type. The 0th offset is always the least significant bit of the first word ( or only word ) of the Bit Storage type.

Bit index figure

Bit Range

Bit Ranges refer to a closed set [M:N], which is unlike STL iterator ranges which refer to an open set [first:last). This means the minimum size for a bit_range is 1. Bit Logic library functions which take range arguments are always ordered from Most Significant Bit to Least Significant Bit. This is opposite from STL whos algorithms and containers use start ( i.e. 0th index of a vector ) , to end ( 1 + last index ).

As with number, all bit descriptions are incremental Right-to-Left.

Bit Range