Boost logo

Boost :

From: Neal D. Becker (nbecker_at_[hidden])
Date: 2003-08-28 08:35:06


I have looked at std::bitset, std::vector<bool>, and boost:dyn_bitset, but
none seems to supply a feature I need.

I'd like to be able to assign to a contiguous field of bits in one operation.
For example:

bitset<12> n;
n.subset (1, 10) = 0x2;

Is there any good c++ lib that can do this? Would this be a good addition to
boost?




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk