Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWTBitVec<size>
Synopsis
Description
Persistence
Example
Public Constructor
Assignment Operators
Logical Operators
Related Global Functions
Synopsis
#include <rw/tbitvec.h>
RWTBitVec<22> // A 22 bit long vector
Description
RWTBitVec<size> is a parameterized bit vector of fixed length size. Unlike class RWBitVec, its
length cannot be changed at run time. The advantage of RWBitVec is its smaller size, and one
less level of indirection, resulting in a slight speed advantage.
Bits are numbered from 0 through size-1, inclusive.
The copy constructor and assignment operator use copy semantics.
Persistence
None
Example
In this example, a bit vector 24 bits long is exercised:
#include <rw/tbitvec.h>