+ 2

What is the use of this ~?

24th Feb 2018, 3:02 PM
Puneet Bhardwaj
Puneet Bhardwaj - avatar
1 Odpowiedź
+ 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