What is the difference between the following declarations?
list<int> myList;
list<int> *myList=new list<int>;
Is one declaration more suited for a particular example than the other or are they just different ways of saying the same thing? Also what is the difference between the following declarations?
list<int> *myList=new list<int>;
list<int>* myList=new list<int>;
Is one of the above declarations wrong or they are same?