Boost logo

Boost Users :

From: Sigg Christian (sigg_at_[hidden])
Date: 2005-10-17 09:44:46


Dear boosters,

I'm trying to figure out why there is no way to define the
iterator_adaptor's pointer type.
I'm trying to write an iterator that concurrently accesses
two containers, but the interface should look like it's only
one container. Therefore, it is necessary to write my own
value, reference and pointer type. However, the
iterator_adaptors pointer type is always value*.

Is it save to just overload the pointer typedef and reimplement
operator->()?

I'm not too much of a c++ expert, so if anyone could comment
on that, I would greatly appreciate it.

Christian


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