mimic: std::partial_ordering, c++20 (partial)

Synopsis

Declared in <folly/lang/Ordering.h>

class partial_ordering;

Member Functions

Name

Description

partial_ordering [constructor]

Constructors

operator ordering

Convert to a total ordering, throwing if the value is unordered.

Using Declarations

Name

Description

equivalent

The equal‐comparison result.

greater

The greater‐than‐comparison result.

less

The less‐than‐comparison result.

unordered

The result for operands that cannot be ordered.

Friends

Name

Description

folly::operator!=

Test whether two partial_ordering values represent different results.

folly::operator==

Test whether two partial_ordering values represent the same result.

folly::partial_ordering::constants

Created with MrDocs