View Full Version: Question about '~'

C++ Learning Community > C++ Help > Question about '~'


Title: Question about '~'


Dragon - June 29, 2003 04:12 AM (GMT)
I've also seen this used in code:

something :: ~something

What does '~' do?

Xception - June 29, 2003 08:08 AM (GMT)
It does nothing, it is used in classes for the destructor, the destructor looks like the constructor but a "~" precedes it and a destructor can't have parameters..

Dragon - June 29, 2003 06:27 PM (GMT)
Oh, I was wondering about that, since I haven't seen that before.




* Hosted for free by InvisionFree