Using <bitset>

Richard_at_nospam.nospam
Date: 08/06/04

  • Next message: Gary Chang: "RE: Using <bitset>"
    Date: Fri, 6 Aug 2004 08:21:02 -0700
    
    

    Is there a way to use <bitset> on an external array of bits (rather than
    bitset's built in _Array)? Or possibly another class I could use? I'd like to
    use the functionality of bitset on an array of packed bits representing my
    hardware memory mapped IO. I'm currently using a bitfield struct but bitset
    would be preferable.

    Thanks in advance,
    Richard Wilder


  • Next message: Gary Chang: "RE: Using <bitset>"

    Relevant Pages

    • Re: Pascal-like set class
      ... > membership seem odd, because I pronounce the code "If element e is equal ... the reason I wrote it was because I wanted low-level control of the ... answer to your question is they wouldn't, except when the array is only one ... bitset, then the answer is pascal_set is more typesafe then bitset and I ...
      (comp.lang.cpp)
    • Re: Are there any databases that can store multidiimensional boolean arrays?
      ... This person wants to store a four dimensional boolean array, ... I'd never noticed the BitSet class before in several years of coding Java ...
      (comp.lang.java.databases)
    • Re: algorithm help
      ... i added a larger range 1000..5000 to the test set which should come ... closer to ara's problem at hand. ... Interestingly this brings the bitset approach back in play, ... Your approach has a clear advantage if ranges are fairly large compared to the overall number of elements in the array. ...
      (comp.lang.ruby)
    • Re: sets and vectors
      ... >> Pascal provides sets natively from memory. ... >> internally as a bit array, with one bit for each potential item in the ... > isn't that a bitset? ... that can go into the set are identifiers. ...
      (comp.programming)
    • Re: How to allcate an array of strings dynamically
      ... here's a little exercise in algorithm design... ... Working on an embedded system, ... Build an array, copy pointers to the ... being built, or is done AFTER the list is built! ...
      (microsoft.public.vc.mfc)