Boost logo

Boost Users :

From: Stefan Strasser (sstrasser_at_[hidden])
Date: 2005-02-04 17:03:42


Chris Goller schrieb:
> I'm using iterator_facade to implement an iterator over file based data.
>
> So, my question is, since deference returns a reference to a value does
> that reference need to persist when the iterator is incremented or
> decremented?

yes it has. but the reference type does not have to be necessarily a c++
reference. it is by default, but you can change the reference type to
the value type, to a shared_ptr, whatever you want by setting the, I
think, 4th template parameter of iterator_facade.

>
> Because this is file based data I can't always keep a reference around
> because the data is stored on disk.
>
>
> Thanks,
>
> Chris
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
Stefan Strasser

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