Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
mergeable.h70 linesDownload Raw Back to __iterator
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 & AFFILIATES8//9//===----------------------------------------------------------------------===//10 11#ifndef _LIBCUDACXX___ITERATOR_MERGEABLE_H12#define _LIBCUDACXX___ITERATOR_MERGEABLE_H13 14#ifndef __cuda_std__15#include <__config>16#endif // __cuda_std__17 18#include "../__functional/identity.h"19#include "../__functional/ranges_operations.h"20#include "../__iterator/concepts.h"21#include "../__iterator/projected.h"22 23#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)24#  pragma GCC system_header25#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)26#  pragma clang system_header27#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)28#  pragma system_header29#endif // no system header30 31_LIBCUDACXX_BEGIN_NAMESPACE_STD32 33#if _LIBCUDACXX_STD_VER > 1734 35template <class _Input1, class _Input2, class _Output,36          class _Comp = _CUDA_VRANGES::less, class _Proj1 = identity, class _Proj2 = identity>37concept mergeable =38    input_iterator<_Input1> &&39    input_iterator<_Input2> &&40    weakly_incrementable<_Output> &&41    indirectly_copyable<_Input1, _Output> &&42    indirectly_copyable<_Input2, _Output> &&43    indirect_strict_weak_order<_Comp, projected<_Input1, _Proj1>, projected<_Input2, _Proj2>>;44 45#elif _LIBCUDACXX_STD_VER > 1446 47template <class _Input1, class _Input2, class _Output,48          class _Comp, class _Proj1, class _Proj2>49_LIBCUDACXX_CONCEPT_FRAGMENT(50  __mergeable_,51  requires()(52    requires(input_iterator<_Input1>),53    requires(input_iterator<_Input2>),54    requires(weakly_incrementable<_Output>),55    requires(indirectly_copyable<_Input1, _Output>),56    requires(indirectly_copyable<_Input2, _Output>),57    requires(indirect_strict_weak_order<_Comp, projected<_Input1, _Proj1>, projected<_Input2, _Proj2>>)58  ));59 60template <class _Input1, class _Input2, class _Output,61          class _Comp = _CUDA_VRANGES::less, class _Proj1 = identity, class _Proj2 = identity>62_LIBCUDACXX_CONCEPT mergeable =63    _LIBCUDACXX_FRAGMENT(__mergeable_, _Input1, _Input2, _Output, _Comp, _Proj1, _Proj2);64 65#endif // _LIBCUDACXX_STD_VER > 1466 67_LIBCUDACXX_END_NAMESPACE_STD68 69#endif // _LIBCUDACXX___ITERATOR_MERGEABLE_H70 
codekingpro/portable-devtools · Team Ai