SysTutorials

Linux Manual Pages › Section 3

stdstrong_order(3)

std::strong_order - std::strong_order

Synopsis

Defined in header<compare>
    template <class T>
    (since C++ 20)
        constexpr std::strong_ordering strong_order(const T &a, const T &b);

Compares two values using 3-way comparison and produces a result of type std::strong_ordering Specifically,

Parameters

a, b - values to compare

Return value

A value of type std::strong_ordering, as described above.

Notes

Example

 This section is incomplete  Reason: no example

See also

strong_ordering the result type of 3-way comparison that supports all 6 operators and is substitutable                 (class) (C++20) weak_order performs 3-way comparison and produces a result of type std::weak_ordering                 (function template) (C++20)