myString is of type vector i get the constructor and I have struct Node, can someone help me visualize what happens in the destructor function. How does that work, it's one line of code but I'm not understanding how it works. What happens under the hood with that bit of code?
myString.~vector<Node*>();
Code:
struct Node{
string inf;
Node *prev;
Node(const string &val, Node*ptr=0)
:inf(value),prev(ptr){}
};
private:
vector<Node*>myString;
Object::Object():myString(50),myCount(0)
{
}
Object::~Object(){
myString.~vector<Node*>();
//Someone Help me understand this
}