Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Which list is vector<CType>::clear() going to clear? (http://www.go4expert.com/forums/list-vectorctypeclear-t18338/)

hajimeml 3Jul2009 21:41

Which list is vector<CType>::clear() going to clear?
 
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();
}


All times are GMT +5.5. The time now is 00:51.