STL iterator

This is a discussion on STL iterator within the C++ Programming forums, part of the General Programming Boards category; hello I've tried to read headers related to STL iterators, but they're too hard for my quite low knowledge of ...

  1. #1
    coder
    Join Date
    Feb 2008
    Posts
    127

    STL iterator

    hello
    I've tried to read headers related to STL iterators, but they're too hard for my quite low knowledge of C++.
    That's what I am wondering about:
    deferencing an iterator gives me the value it points to.
    But an iterator is an instance of a class...or not?
    How does that work?
    I'm actually trying to implement an avl tree class and I want now to set up an iterator class, just to make practice.
    So I'm curious about STL iterators' behaviour.
    Thanks for any help

  2. #2
    coder
    Join Date
    Feb 2008
    Posts
    127
    Ohh, I've just got that "*" is an operator... it's solved.
    Sorry for the useless thread
    Last edited by carlorfeo; 03-09-2008 at 04:30 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Polynomials and ADT's
    By Emeighty in forum C++ Programming
    Replies: 20
    Last Post: 08-19-2008, 08:32 AM
  2. stl vector + iterator operation
    By sujeet1 in forum C++ Programming
    Replies: 1
    Last Post: 06-05-2007, 04:10 PM
  3. Link list library
    By Brighteyes in forum C Programming
    Replies: 4
    Last Post: 05-12-2003, 08:49 PM
  4. Search and Build Tree
    By 1999grandamse in forum C++ Programming
    Replies: 17
    Last Post: 11-14-2002, 12:36 PM
  5. Compile Errors Due to STL & Iterator
    By kuphryn in forum C++ Programming
    Replies: 2
    Last Post: 12-02-2001, 09:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21