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

Which list is vector<CType>::clear() going to clear?

Discussion in 'C' started by hajimeml, Jul 3, 2009.

  1. hajimeml

    hajimeml New Member

    Joined:
    Jul 3, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hello. I am trying to understand the following code. When the CTB<CType>::Initialize() member function is called, what object of type vector<CType> is going to have all items removed? I am not sure why the Initialize function has no argument to specifically tells the clear() function which list to clear. Any ideas? Thanks.

    template< class CType >
    void CTB<CType>::Initialize(void)
    {
    vector<CType> ::clear();
    }
     

Share This Page