+ 2

What is the use of this ~?

24th Feb 2018, 3:02 PM
Puneet Bhardwaj
Puneet Bhardwaj - avatar
2 Answers
+ 5
~var does the ! (logical not) operation on every bit in var. Class::~Class() is called when a variable of type Class is deleted.
24th Feb 2018, 3:05 PM
Timon Paßlick