I am creating a template class with a list object as a private member:
 .
 .
 .
 private:
list<E> listObject;
 };
The first constructor has to create a list object with capacity of 10. How would you do that?
 template<class T, class E>
 Queue<T,E>::Queue()
 {
listObject.resize(10); 
 }
or
 template<class T, class E>
 Queue<T,E>::Queue()
 {
listObject = new list<E>(10); 
 }
or any other idea?
 
     
     
    