3

How can I access the underlying iterator that a multi_pass iterator is using?

user541686
  • 205,094
  • 128
  • 528
  • 886
  • 1
    `my_Iterator.shared()->input_` seems to work. –  Dec 23 '12 at 06:07
  • @llonesmiz: Oooh awesome! I figured I had to look at `shared()` but I had trouble going from there... would you mind posting it as an answer? :D Thanks! – user541686 Dec 23 '12 at 06:35

1 Answers1

2

The underlying iterator seems to be stored in the input_ member of the protected iterator member member. You can get access to it via the method shared.

my_iterator.shared()->input_;