From: Daryle Walker (darylew_at_[hidden])
Date: 2004-04-25 13:26:56
On 4/15/04 3:21 PM, "Jeremy Siek" <jsiek_at_[hidden]> wrote:
> Hi Gennaro,
> On Apr 14, 2004, at 4:06 AM, Gennaro Prota wrote:
>> I was thinking, however: what about returning the index of the first
>> bit in common (or npos), instead of true/false?
> That functionality sounds useful, but I think the current intersects()
> function should not be removed since it provides for a common use case.
> Adding another function with the semantics you describe would be good.
If you don't already have it, you could add a member function that returns a
list of the set-bit indices.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk