I have my custom class, like:
class MyClass {
   public:
        int i;
        std:string name;
        void DoSomeStuff();
}
and another class with a list of my custom class:
class MyClassList {
    public:
        std::vector<MyClasss> myClassList;
}
How shall be the list destructor in order to release all used vector space in memory:
MyClassList::~MyClassList 
{
    myClassList.clear();
    delete &myClassList;
}
Is that code right, redundant or wrong ?
Thanks for helping...
 
     
     
     
    