Johannes Bauer
10/27/2008 1:28:00 PM
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
--
"Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
-- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
<48d8bf1d$0$7510$5402220f@news.sunrise.ch>