[Dune-devel] Random-Access Iterators

Christian Engwer christian.engwer at uni-muenster.de
Wed Oct 1 23:56:24 CEST 2014


> > Do you actually think that mixed meshes will provide efficient
> random-access iterators?
> I am assuming there is no requirement for this access to be efficient?
> Or is something like
> "access in O(1)" part of the suggestion?

it is not stated explicitly, but I would expect this. If you can't
provide an efficient immeplementation, just provide a forward
iterator. If you want to do random-like access on a forward iterator,
you can do this via stl algorithms, or if they don't fit your need via
short specialization.

Christian




More information about the Dune-devel mailing list