Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) operator!=

 

operator!= is the operator to determine if two instances are different.

 

The following code uses operator!= to determine that three is not equal to four:

 

#include <iostream>

int main()
{
  if (3 != 4) std::cout << "Three is not equal to four" << std::endl;
}

 

operator!= is encapsulated by the functor std::not_equal_to.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict