maskNibble

Run-time mask() partially specialized for nibble-masking.

  1. auto maskNibble(T value)
  2. auto maskNibble(T value, size_t index)
    maskNibble
    (
    T
    )
    (
    const T value
    ,
    size_t index
    )

Examples

assert(maskNibble(0x12345678,1) == 0x12345608);

Meta