Possible Duplicate:
In c++ what does a tilde “~” before a function name signify?
What does ~ in front of a function mean, in C++:
class list
{
...other stuff...
public:
list();
~list();
void insertFront(const TYPE&);
TYPE deleteFront();
void insertRear(const TYPE &);
int isEmpty() const;
void traverse() const;
};
It means that the function is the destructor for the class it is defined in. The rest of the name (after ~) must match the name of the class.