Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) operator>=

 

operator>= is the operator to determine if the left-hand instance is greater or equal the right-hand instance.

 

The following code uses operator>= to determine that one plus two is greater or equal equal to three:

 

#include <iostream>

int main()
{
  if (1 + 2 >= 3) std::cout << "One plus two is greater or equal than three.\n";
}

 

operator>= is encapsulated by the functor std::greater_equal.

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict