C++ – Meaning of >?= Operator

c++g++operators

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.

Best Answer

It's a GCC extension that was removed in GCC version 4.2 and later.

The equivalent of a >?= b is a = max(a,b);

There is also a very similar operator a <?= b which means the same as a = min(a, b);.

Related Question