1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Scope resolution operator? [Newbie]

Discussion in 'C++' started by Freiza, Jun 11, 2012.

  1. Freiza

    Freiza New Member

    Jun 11, 2012
    Likes Received:
    Trophy Points:
    How is iterator implemented in vector class?

    vector<int> v;
    vector<int>::iterator i = v.begin();

    I know vector is a template class. And iterator is an object. And also iterator is not a static object.

    Then why we are not accessing it through dot operator?

    And what does vector class looks like. Is iterator a member of vector class?

Share This Page