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