1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5// See https://llvm.org/LICENSE.txt for license information. 6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7// 8//===----------------------------------------------------------------------===// 9 10module; 11#include <compare> 12 13export module std:compare; 14export namespace std { 15 16 // [cmp.categories], comparison category types 17 using std::partial_ordering; 18 using std::strong_ordering; 19 using std::weak_ordering; 20 21 // named comparison functions 22 using std::is_eq; 23 using std::is_gt; 24 using std::is_gteq; 25 using std::is_lt; 26 using std::is_lteq; 27 using std::is_neq; 28 29 // [cmp.common], common comparison category type 30 using std::common_comparison_category; 31 using std::common_comparison_category_t; 32 33 // [cmp.concept], concept three_way_comparable 34 using std::three_way_comparable; 35 using std::three_way_comparable_with; 36 37 // [cmp.result], result of three-way comparison 38 using std::compare_three_way_result; 39 40 using std::compare_three_way_result_t; 41 42 // [comparisons.three.way], class compare_three_way 43 using std::compare_three_way; 44 45 // [cmp.alg], comparison algorithms 46 inline namespace __cpo { 47 using std::__cpo::compare_partial_order_fallback; 48 using std::__cpo::compare_strong_order_fallback; 49 using std::__cpo::compare_weak_order_fallback; 50 using std::__cpo::partial_order; 51 using std::__cpo::strong_order; 52 using std::__cpo::weak_order; 53 } // namespace __cpo 54 55} // namespace std 56