 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Lars Horeis Guest
|
Posted: Sun May 23, 2004 4:42 pm Post subject: Fragen zu std::bitset |
|
|
Hallo,
die erste Frage habe ich in ähnlicher Form bereits vor einer Woche zu
std::vector<bool> gestellt, allerdings ist die wohl nicht bis in die
Newsgruppe gelangt.
Hier die Fragen:
1.
Ich habe eine Funktion, welche mir einen std::bitset<128>
zurückliefert. Nun möchte ich jeweis 8 dieser bitsets in einem neuen
bitset zusammenfassen, sodass ich ein std::bitset<1024> erhalte.
Wie kann man das am geschicktesten (auch in Bezug auf Performance)
anstellen?
2.
Wenn ich ein std::bitset unter Verwendung von operator<< bzw operator>>
nach links bzw. nach rechts shifte werden ja Bits aus dem bitset
'rausgeschoben'. Gibt es eine Möglichkeit auf diese Bits zuzugreifen?
Gruss,
Lars
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|