Boost logo

Boost Users :

From: Dave Steffen (dgsteffen_at_[hidden])
Date: 2005-12-14 10:55:01


Folks,

I used dynamic_bitset for the first time last night - nifty! I am
curious, though, about how to construct a bitset of all 1's. Right
now I'm doing this:

dynamic_bitset foo(n);
foo.set();

Is there a more efficient way to generate a bitset will all bits set?

Thanks very much!

------------------------------------------------------------------------
Dave Steffen, Ph.D. "We warn the reader in advance that the proof
Software Engineer IV presented here depends on a clever but highly
Numerica Corporation unmotivated trick."
ph (970) 419-8343 x27
fax (970) 223-6797 -- Howard Anton, "Elementary Linear Algebra"
dgsteffen_at_[hidden]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net