From: Daryle Walker (darylew_at_[hidden])
Date: 2002-06-12 21:22:05
on 6/12/02 11:18 AM, Jeremy Siek at jsiek_at_[hidden] wrote:
> It sounds like you would like to see a class that has both iterators and
> arithmetic operators. I am open to adding iterators (Howard Hinnant also
> made this suggestions), however I have reservations. As I posted
> previously, I think iterators over bits are a bad idea because they are
> inherently slow. If the user wants to iterate, then vector<char> is a
> better choice.
But sometimes you want a class with bit-packing _and_ iteration. When I was
trying out my bitint types, I wished that a simple (i.e. no-check) iterator
existed so I could have a easier time combining bit-sequences.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk