Boost logo

Boost Users :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2003-04-18 05:54:43


On Tue, 15 Apr 2003 17:49:27 -0400, "Andy Klapper"
<yg-boost-users_at_[hidden]> wrote:

[...]
>What I need is something with an iterator syntax that returns the indexes
>whose values are set. I could of course just loop through looking for set
>values, but that seems silly when you think that entire blocks of bits can
>be skipped if the block has a value of zero.
>
>So my questions is, before I set out to write some code, has somebody
>already done this? It seems like a logical use of dynamic_bit set so it
>does not seem implausible. If not, any suggestions or warnings?

Your description is a little vague to me but... are
find_first/find_next enough?

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost-sandbox/boost-sandbox/boost/

Genny.


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