|
Boost Users : |
From: Paul Elliott (pelliott_at_[hidden])
Date: 2004-03-22 13:52:33
I am trying to figure out iterators and I have a dumb question:
I have an iterator A_iter, that can traverse in both directions
( A_iter++ and A_iter-- ) and can do input (operator*()).
Value_type = type of *A_iter is A;
and A is static_cast able to B:
A start;
B fish = static_cast<B>(start); // OK
How do I use adapters to create B_iter, which is the same as A_iter,
but whose value_type= typeof *B_iter is B?
I am sorry if this is a dumb question.
-- Paul Elliott 1(512)837-1096 pelliott_at_[hidden] PMB 181, 11900 Metric Blvd Suite J http://www.io.com/~pelliott/pme/ Austin TX 78758-3117
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