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

Synopsis

Declared in <folly/lang/Ordering.h>

enum class ordering : int8_t;

Members

Name

Description

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

Name

Description

to_ordering

Convert a signed comparison value into the matching ordering.

Created with MrDocs