What does ! mean in c++?

Yes that is correct. (But of course the operator! can be overridden to do anything)