Boost logo

Boost Users :

From: Markus Bernhardt (Markus.Bernhardt_at_[hidden])
Date: 2006-10-17 06:36:04


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a custom vector-like template class for scalar types which
compresses the contents similar to the infamous vector<bool> template.

If for example all stored values are in the range from 0 to 1023 then
only 10 bits will be used to store each value. If you insert the value
1024 to the sequence the bitcount will be increased to 11 and the whole
sequence get rewritten.

Now I want to use boost::iterator to create a "random access traversal
iterator". I think I have to provide a custom Difference parameter,
because std::ptrdiff_t will not work (right?).

I have simply no idea how to do that.

Any comments are welcome.

Thank you,
Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFNLIUdnooMonJSYkRAi3dAJ91CwtdgBRdjDnt0gFKxvh0Hq7WVwCfUST/
kpFy9EA5MGZvU1cF7RKnjZw=
=c53t
-----END PGP SIGNATURE-----


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