| | | | | |

Implementing BitVector - 4

void BitVector::Set (size_t index)
// set specified bit
{ 
  // bitwise_or mask into correct byte
}

bool BitVector::Test  (size_t index) const  
// return specified bit value
{
  return 0 != (byteArray_[ByteNumber(index)] & Mask(index));
}

| | Top of Page | 7. A BitVector Class - 12 of 14