folly::ordering

Three-way comparison result: less-than, equal, or greater-than.

Synopsis

Declared in <folly/lang/Ordering.h>

enum class ordering : int8_t;

Members

NameDescription
lt The left operand is less than the right operand.
eq The two operands are equal.
gt The left operand is greater than the right operand.

Non-Member Functions

NameDescription
to_orderingConvert a signed comparison value into the matching ordering.