Alex Rivera | Logout

What does the >?= operator mean?

Asked 2011-03-04T21:45:25.063
41

Looking through this C++ BigInt library and found the BigInt.cpp file. At the top there is a a comment at the top about compatibility:

This class was written for the g++ compiler and uses some of the g++ extensions (like "long double" and the ">?=" operator).

What does that >?= operator do? I can't find a reference to it anywhere else.

Edit
Report

1 Answer

4

See C extension: <? and >? operators

It's the max-then-assign operator: Take the greater of the left and right sides and stuff it back into the lefthand side.

It's removed from g++ and should be replaced with max (or min for <?=)

answered 2011-03-04T21:52:04.283

Your Answer