Skip to content

futures::compare_three_way

Defined in header <futures/algorithm/compare/compare_three_way.hpp>

struct compare_three_way;

Function object for performing comparisons.

Description

This class defines functor equivalent to the C++20 std::ranges::compare_three_way. If C++20 is available, it represents an alias to std::ranges::compare_three_way.

See Also: std::compare_three_way

Public Types

Member Types Definition
is_transparent void
(using)

Public Functions

Member Functions Description
operator() const (function template)

Public Types

using is_transparent

Defined in header <futures/algorithm/compare/compare_three_way.hpp>

using is_transparent = void;

Public Functions

function operator()

Defined in header <futures/algorithm/compare/compare_three_way.hpp>

template <class T, class U>
constexpr partial_ordering
operator()(T && t, U && u) const;

Exception Safety

Basic exception guarantee.


Updated on 2023-01-04