Modifying elements of hash_set.

Discussion in 'C++' started by Amit Bhatia, Mar 5, 2007.

  1. Amit Bhatia

    Amit Bhatia Guest

    Hi,
    I was wondering if I have a hash_set, can I modify its elements using an
    iterator: given the fact that the changes I make will not change the
    position or the key of the object that the iterator points to?

    Or do I need to necessarily use hash_map ?

    Thanks,
    --a.
    Amit Bhatia, Mar 5, 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. Vasileios
    Replies:
    4
    Views:
    457
    Rolf Magnus
    Nov 4, 2003
  2. Abhijit Ray
    Replies:
    1
    Views:
    585
    John Harrison
    Apr 27, 2004
  3. Alex Gerdemann

    Performance of hash_set vs. Java

    Alex Gerdemann, Oct 11, 2004, in forum: C++
    Replies:
    10
    Views:
    2,250
    Tom Widmer
    Oct 13, 2004
  4. Amit Bhatia

    Modifying elements of hash_set.

    Amit Bhatia, Mar 5, 2007, in forum: C++
    Replies:
    5
    Views:
    441
    P.J. Plauger
    Mar 6, 2007
  5. eric
    Replies:
    3
    Views:
    1,285
    Michael DOUBEZ
    Jul 12, 2011
Loading...

Share This Page