Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
concepts174 linesDownload Raw Back to include
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-exception7// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.8//9//===----------------------------------------------------------------------===//10 11#ifndef _LIBCUDACXX_CONCEPTS12#define _LIBCUDACXX_CONCEPTS13 14/*15    concepts synopsis16namespace std {17  // [concepts.lang], language-related concepts18  // [concept.same], concept same_as19  template<class T, class U>20    concept same_as = see below;21 22  // [concept.derived], concept derived_from23  template<class Derived, class Base>24    concept derived_from = see below;25 26  // [concept.convertible], concept convertible_to27  template<class From, class To>28    concept convertible_to = see below;29 30  // [concept.commonref], concept common_reference_with31  template<class T, class U>32    concept common_reference_with = see below;33 34  // [concept.common], concept common_with35  template<class T, class U>36    concept common_with = see below;37 38  // [concepts.arithmetic], arithmetic concepts39  template<class T>40    concept integral = see below;41  template<class T>42    concept signed_integral = see below;43  template<class T>44    concept unsigned_integral = see below;45  template<class T>46    concept floating_point = see below;47 48  // [concept.assignable], concept assignable_from49  template<class LHS, class RHS>50    concept assignable_from = see below;51 52  // [concept.swappable], concept swappable53  namespace ranges {54    inline namespace unspecified {55      inline constexpr unspecified swap = unspecified;56    }57  }58  template<class T>59    concept swappable = see below;60  template<class T, class U>61    concept swappable_with = see below;62 63  // [concept.destructible], concept destructible64  template<class T>65    concept destructible = see below;66 67  // [concept.constructible], concept constructible_from68  template<class T, class... Args>69    concept constructible_from = see below;70 71  // [concept.default.init], concept default_initializable72  template<class T>73    concept default_initializable = see below;74 75  // [concept.moveconstructible], concept move_constructible76  template<class T>77    concept move_constructible = see below;78 79  // [concept.copyconstructible], concept copy_constructible80  template<class T>81    concept copy_constructible = see below;82 83  // [concept.equalitycomparable], concept equality_comparable84  template<class T>85    concept equality_comparable = see below;86  template<class T, class U>87    concept equality_comparable_with = see below;88 89  // [concept.totallyordered], concept totally_ordered90  template<class T>91    concept totally_ordered = see below;92  template<class T, class U>93    concept totally_ordered_with = see below;94 95  // [concepts.object], object concepts96  template<class T>97    concept movable = see below;98  template<class T>99    concept copyable = see below;100  template<class T>101    concept semiregular = see below;102  template<class T>103    concept regular = see below;104 105  // [concepts.callable], callable concepts106  // [concept.invocable], concept invocable107  template<class F, class... Args>108    concept invocable = see below;109 110  // [concept.regularinvocable], concept regular_invocable111  template<class F, class... Args>112    concept regular_invocable = see below;113 114  // [concept.predicate], concept predicate115  template<class F, class... Args>116    concept predicate = see below;117 118  // [concept.relation], concept relation119  template<class R, class T, class U>120    concept relation = see below;121 122  // [concept.equiv], concept equivalence_relation123  template<class R, class T, class U>124    concept equivalence_relation = see below;125 126  // [concept.strictweakorder], concept strict_weak_order127  template<class R, class T, class U>128    concept strict_weak_order = see below;129}130 131*/132 133#ifndef __cuda_std__134#include <__config>135#endif // __cuda_std__136 137#include "__assert" // all public C++ headers provide the assertion handler138#include "__concepts/__concept_macros.h"139#include "__concepts/_One_of.h"140#include "__concepts/arithmetic.h"141#include "__concepts/assignable.h"142#include "__concepts/boolean_testable.h"143#include "__concepts/class_or_enum.h"144#include "__concepts/common_reference_with.h"145#include "__concepts/common_with.h"146#include "__concepts/constructible.h"147#include "__concepts/convertible_to.h"148#include "__concepts/copyable.h"149#include "__concepts/derived_from.h"150#include "__concepts/destructible.h"151#include "__concepts/different_from.h"152#include "__concepts/equality_comparable.h"153#include "__concepts/invocable.h"154#include "__concepts/movable.h"155#include "__concepts/predicate.h"156#include "__concepts/regular.h"157#include "__concepts/relation.h"158#include "__concepts/same_as.h"159#include "__concepts/semiregular.h"160#include "__concepts/swappable.h"161#include "__concepts/totally_ordered.h"162 163#include "version"164 165#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)166#  pragma GCC system_header167#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)168#  pragma clang system_header169#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)170#  pragma system_header171#endif // no system header172 173#endif // _LIBCUDACXX_CONCEPTS174 
codekingpro/portable-devtools · Team Ai