J
Johannes Bauer
Hello group,
I need a bit vector of a fixed size (which may well be known at
compiletime). The requirement is that it should be able to perform the
&, ^, |, ~ and <</>> operations. I.e. something like (pseudocode):
dreamvector<12> x, y, z;
x[0] = true;
x[4] = true;
x[8] = true;
y[4] = true;
z = x & y;
z <<= 3;
Which should result in z being:
CBA9876543210
0000010000000
Is something like this already present in the STL or do I have to
implement it by myself?
Kind regards,
Johannes
I need a bit vector of a fixed size (which may well be known at
compiletime). The requirement is that it should be able to perform the
&, ^, |, ~ and <</>> operations. I.e. something like (pseudocode):
dreamvector<12> x, y, z;
x[0] = true;
x[4] = true;
x[8] = true;
y[4] = true;
z = x & y;
z <<= 3;
Which should result in z being:
CBA9876543210
0000010000000
Is something like this already present in the STL or do I have to
implement it by myself?
Kind regards,
Johannes