jeudi 20 août 2020

How to iterate std::set based on offset from set.begin()?

I need to get an iterator based on offset.

i.e. having the iterator for begin :

auto it = set.begin()

I need to get to the iterator having offset ofst:

it + ofst

Is there a way to do that? of I need incremental increase it++ the iterator ofst times.

Aucun commentaire:

Enregistrer un commentaire