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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice