Iterator question

Discussion in 'C++' started by Alex__655321@hotmail.com, Apr 13, 2007.

  1. Guest

    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
    , Apr 13, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hendrik Maryns
    Replies:
    18
    Views:
    1,421
  2. greg
    Replies:
    6
    Views:
    454
    Dietmar Kuehl
    Jul 17, 2003
  3. Replies:
    6
    Views:
    643
    Jim Langston
    Oct 30, 2005
  4. Steven D'Aprano

    What makes an iterator an iterator?

    Steven D'Aprano, Apr 18, 2007, in forum: Python
    Replies:
    28
    Views:
    1,156
    Steven D'Aprano
    Apr 20, 2007
  5. David Bilsby
    Replies:
    5
    Views:
    2,043
    David Bilsby
    Oct 9, 2007
Loading...

Share This Page