Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
118 views
in Technique[技术] by (71.8m points)

c++ - What does the >?= operator mean?

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.

question from:https://stackoverflow.com/questions/5199630/what-does-the-operator-mean

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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);.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...