Iterator question

A

Alex__655321

Hello All

I hope I'm correct posting an STL question here - if not feel free to
direct me to somewhere more appropriate.

I'm writing some code using an std::set which I believe is the best
container to use for this particular problem.

However I have a case where I need to iterate through the set at an
arbitrary starting point and traverse all other elements in it.

For example - if I have a list of 5 elements and wished to start at
element 3, I would need my iterator to go
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top