Earlier iterations of g++
(not the C compiler) used these operators for giving you the minimum or maximum values but they've long been deprecated in favour of std::min
and std::max
.
Basically, they equated to (but without the possibility of double evaluation of a
or b
):
a <? b --> (a < b) ? a : b
a >? b --> (a > b) ? a : b
In terms of replacing them (and you really should replace them), you can use something like:
Offset block_count = cpfs->geo.block_size - block_offset;
if (block_count > count) block_count = count;
or equivalents using std::min
.
I'm not a big fan of using C/C++ "extensions" (especially ones that have been deprecated and/or removed) since they tie me to a specific implementation of the language.
You should never use a non-standard extension where a perfectly adequate standard method is available.